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
------- Additional Comments From [EMAIL PROTECTED] 2001-09-21 14:13 -------
Your remarks are corrct for the path_info and servet_path fields read from the
ServletContext object of a running servlet. In the case where the url mapping
'/*' matches, the servlet-path will be empty and the path_info will contain the
part after the context path up to the request parameters.
However, the problem I have reported concerns the path_info and servet_path
fields stored as request attributes after a servlet has been invoked by calling
the include method of a RequestDispatcher. The servlet is addressed by its class
name, thus the url mappings specified in the web.xml file are not involved in
this case. According to the specification of servlet api 2.2 / Section 8.3.1,
the request attribut fields of an included servlet contain the path by which it
was invoked and not the original request paths! Thus, for the example given
earlier the path_info should be 'null' and the servlet_path should hold the
value '/servlet/SnoopIncluderServlet'.
Could you please comment the second problem I have remarked: If you look at the
output of the given example code, why do the outputed values change, when a
dummy entry is ADDED to the current web.xml config?