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=9016>.
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=9016

welcome-files don't map to servlet without disk file

           Summary: welcome-files don't map to servlet without disk file
           Product: Tomcat 4
           Version: 4.0.3 Final
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Catalina
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


In order to have a webapp load a particular servlet as the default, I am using a
<welcome-file> directive, and then a <servlet-mapping> to direct that to the
appropriate servlet.

However, this only works if there is a physical file in the directory with the
name of the welcome file.  Rather strange behaviour as the file is not actually
used.

The following is used to make the request go to our servlet, but all requests
for images, etc, go to the tomcat default servlet.

In the WEB.XML:

    <servlet-mapping>
        <servlet-name>servlet1</servlet-name>
        <url-pattern>/index.html</url-pattern>
    </servlet-mapping>

    <welcome-file-list>
        <welcome-file>index.html</welcome-file>
    </welcome-file-list>

My configuration:

Tomcat 4.03 Final
JDK 1.4.0
Windows 2000

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to