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/03/04 15:01:43 UTC
DO NOT REPLY [Bug 6846] New: -
dispatcher.forward() is confused when using special servlet mapping URLs
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>