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/05/13 01:11:29 UTC

DO NOT REPLY [Bug 9016] New: - welcome-files don't map to servlet without disk 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=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: tomcat-dev@jakarta.apache.org
        ReportedBy: richard@cyberglue.com


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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>