You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/09/11 01:34:15 UTC
DO NOT REPLY [Bug 12503] New: -
default servlet overrides welcome file
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=12503>.
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=12503
default servlet overrides welcome file
Summary: default servlet overrides welcome file
Product: Tomcat 5
Version: Unknown
Platform: All
OS/Version: Windows NT/2K
Status: NEW
Severity: Normal
Priority: Other
Component: Catalina
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: jian.cai@sun.com
If the default servlet is set in the applicaiton, the welcome file does not
work.
In web.xml if the following servlet has been set as the default servlet for the
application.
<servlet-mapping>
<servlet-name>webAdminPoint</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
The welcome file was set as:
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
The correct behaviour: If access "webcontext/" (there is index.jsp in
webcontext ), the containter should still direct the request to the index.jsp
(see Servlet Spec SRV .9.10)
But Tomcat does not use the welcome file once the default servlet is set. All
access with end of "/" was handled by the default servlet.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>