Difference between version and version      View first change»»

Back to HowToUseAServletAsYourMainWebPage, or HowToUseAServletAsYourMainWebPage version history

At line 70 added 1 line.
* As the path for <[welcome-file|web.xml.WelcomeFile]> is relative, a servlet can only be used as the main page of the application, and not a welcome file for every folder. This is because if the user attempts to access http://<domainName>/<appName>/someFolder, you must also have a <[url-pattern|web.xml.URLPattern]> mapping for /someFolder/servlet/MyServlet. Even if you map the servlet as *.foo, a <[welcome-file|web.xml.WelcomeFile]> of index.foo will not work (at least in Tomcat versions up to and including 5.5.23 and 6.0.13. If you want the servlet to work as a default for any folder, consider changing the [Default Servlet] instead.
navigation
metawerx specific
search
Share
tools
help

referring pages

Share