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 25965] New: - RequestDispatcher fails after cross context include
Date Wed, 07 Jan 2004 18:56:00 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=25965>.
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=25965

RequestDispatcher fails after cross context include

           Summary: RequestDispatcher fails after cross context include
           Product: Tomcat 4
           Version: 4.1.27
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Connector:Coyote HTTP/1.1
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: sdgoldst@mailandnews.com


Write two web applications A and B.  In A, create a Servlet, AController, which 
performs an include to another Servlet, BController, in B.  BController's 
service() method contains the following code:

RequestDispatcher dispatcher = httpServletRequest.getRequestDispatcher
("test.jsp");
dispatcher.include(httpServletRequest, httpServletResponse);  

where test.jsp is a simple jsp in web app B.

Point the browser to request the BController servlet directly.  In this case, 
the jsp is properly displayed.  Now, point the browser to AController.  I would 
expect the jsp to be displayed in the same manner.  However, it fails to 
display without an exception or error from the application server.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message