tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 9016] New: - welcome-files don't map to servlet without disk file
Date Sun, 12 May 2002 23:11:29 GMT
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:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message