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 2003/07/31 11:33:20 UTC
DO NOT REPLY [Bug 22013] New: -
RequestDispatcher.forward doesn't work with a relative path on a forwarded request
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=22013>.
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=22013
RequestDispatcher.forward doesn't work with a relative path on a forwarded request
Summary: RequestDispatcher.forward doesn't work with a relative
path on a forwarded request
Product: Tomcat 4
Version: 4.1.24
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Normal
Priority: Other
Component: Catalina
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: stephane.sr.riviere@atosorigin.com
Let's get :
- ServletA, mapped to /servletA/*, forwarding all request to servletB, using an
absolute path ("/servletB/index.srv")
- ServletB, mapped to /servletB/index.srv, forwarding all request to a JSP,
using a relative path ("index.jsp")
- index.jsp is located in "servletB" subfolder
=> accessing to URL /servletB/index.jsp correctly return JSP content (!)
=> accessing to URL /servletB/index.srv correctly forwards to the JSP (forward
is OK)
=> accessing to URL /servletA/index.srv return a 404 on "/index.jsp" (request
dispatcher lost context info)
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org