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/10 13:35:44 UTC
DO NOT REPLY [Bug 8973] New: -
request.getRequestDispatcher is returning a RequestDispatcher for the wrong context.
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=8973>.
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=8973
request.getRequestDispatcher is returning a RequestDispatcher for the wrong context.
Summary: request.getRequestDispatcher is returning a
RequestDispatcher for the wrong context.
Product: Tomcat 4
Version: 4.0.3 Final
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: Other
Component: Catalina
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: x@cs.stanford.edu
Two contexts:
ContextA
ContextB
ContextA has ServletA
ContextB has ServletB
ServletA uses
getServletContext().getContext("/ContextB").getRequestDispatcher("/ServletB") to
include ServletB
1.ServletB does request.getRequestDispatcher("/foo")
2.ServletB does getServletContext().getRequestDispatcher("/foo")
1.This returns a request dispatcher from context A! [BUG]
2.This returna a request dispatcher from context B. [CORRECT]
Possible cause 1: The context of the request is incorrectly contextA.
Possible cause 2: The context of the request SHOULD be contextA, but it
should not be using its own context, but rather getting it
from somewhere else.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>