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 6846] New: - dispatcher.forward() is confused when using special servlet mapping URLs
Date Mon, 04 Mar 2002 14:01:43 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=6846>.
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=6846

dispatcher.forward() is confused when using special servlet mapping URLs

           Summary: dispatcher.forward() is confused when using special
                    servlet mapping URLs
           Product: Tomcat 4
           Version: 4.0.3 Final
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Unknown
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: andreas@schildba.ch


please have a look at the web application attached to this bug.
web.xml defines two servlet mappings:
/subdir/ reproduces the bug.
/subdir/foobar works as expected.
both map to a servlet that does a dispatcher.forward() to an html page 
(/subdir/hello.html).
both mappings should display the html page. unfortunately, the first mapping 
doesn't. apparently it searches for hello.html at some other place than 
the /subdir. notice that the mapping contains a trailing slash to make sure 
that servlet mapping is contained in the subdir.
i found no part of the servlet specification that forbids the use of just a 
directory. it also works as expected under tomcat 3.2 and 3.3.

--
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