DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10116>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10116 welcome page resolutions do not take mapped servlets or jsp pages into account Summary: welcome page resolutions do not take mapped servlets or jsp pages into account Product: Tomcat 4 Version: 4.0.4 Final Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Normal Priority: Other Component: Catalina AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I am trying to do the following thing: I created a jsp page called index.jsp an put it into the root path of a webapp. This page shall be a welcome page. Therefore I could specify index.jsp as a welcome page within the web descriptor, which works fine. Now I would like to hide the .jsp suffix from the users. Therefore I created a servlet mapping that maps the index.jsp page to the url pattern /index.html and specified index.html to be a welcome page. This doesn't seem to work. If I manually type into my browser "<webapp>/index.html" then my jsp page is invoked, which is fine, but if I just type "<webapp>" then I get a directory listing. I believe that this behaviour is not correct. For better understanding I will post an extract of the web descriptor as well: <servlet> <servlet-name>root-page</servlet-name> <jsp-file>/index.jsp</jsp-file> </servlet> <servlet-mapping> <servlet-name>root-page</servlet-name> <url-pattern>/index.html</url-pattern> </servlet-mapping> <welcome-file-list> <welcome-file>index.html</welcome-file> </welcome-file-list> Since index.html is specified as the welcome page, if I access the root directory / then, to my intuition, catalina should make a redirect or a forward to /index.html. It should then realize that a jsp page called /index.jsp is mapped to this URL and invoke it. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
