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 2001/09/19 20:38:56 UTC

DO NOT REPLY [Bug 3727] New: - Switched included request parameters

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=3727>.
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=3727

Switched included request parameters

           Summary: Switched included request parameters
           Product: Tomcat 3
           Version: 3.3 Beta 2
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Servlet
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: tom.sprenger@adnovum.com


When a servlet is called using a RequestDispatcher - the dispatcher is received
by calling getRequestDispatcher() of ServletRequest and servlet to call is
addressed by its class name - it mixes up its path information stored in the
requet's attribute fields.

The servlet is basically called by

disp = req.getRequestDispatcher("/servlet/appsvtest.server.AppSvTestServlet");
disp.forward(req, resp);

The attribute fields of the called servlet contain the following values after
the forward call.

-------------------------------------------------------------------------------
Attribute: javax.servlet.include.path_info
Value:     /servlet/ch.nevis.appsvtest.server.AppSvTestServlet
-------------------------------------------------------------------------------
Attribute: javax.servlet.include.servlet_path
Value:     [empty string]
-------------------------------------------------------------------------------

By my understanding the servlet path should instead point to the servlet class
and the path info should contain an empty string, because there is no additional
information after the name of the servlet class.