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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to