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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to