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 3665] New: - Request Dispatching - Parameters are not properly set
Date Mon, 17 Sep 2001 23:06:06 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=3665>.
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=3665

           Summary: Request Dispatching - Parameters are not properly set
           Product: Tomcat 4
           Version: 4.0 Release Candidate 2
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: tom.sprenger@adnovum.com


According to Servlet API Spec 2.3/Section 8.3.1, the following request
attributes are set whenever a request is dispatched to another servlet/jsp using
the 'include' method of the RequestDispatcher object:

javax.servlet.include.request_uri
javax.servlet.include.context_path
javax.servlet.include.servlet_path
javax.servlet.include.path_info
javax.servlet.include.query_string

This fields should enable a servlet being used from within an include to access
the parameters by which it was invoked.

According to our test environment checking several dispatching methods Tomcat
4.0rc2 seems to handle this fields wrongly. Using a RequestDispatcher (not a
NamedDispatcher) and the 'include' method, Tomcat 4.0rc2 does not set these
fields at all. Checking the request attributes, shows that these fields are not
available for the called servlet.

Mime
View raw message