Hi all,
I was reading the Mannings book for SCWCD,
Sec 4.8.3 Acessing request-scoped attributes with RequestDispatcher
"One important aspect of the new servlet specification involves he ability of an included or forwarded servlet to access request information through attributes. The name of the attribute dependes on whether
RequestDispatcher.include() or RequestDispatcher.forward() was invoked."
After this a list of Attributes available to included/forwarded
servlets for obtainng information about request is given; like
Attribute for included servlet are
javax.servlet.include.request_uri, javax.servlet.include.context_path,
javax.servlet.include.servlet_path, javax.servlet.include.path_info and
javax.servlet.include.querry_string.
Similarly the Attributes for forwarded servlet
are same with include being replaced by forward.
Further the author says.....
"The values corrrespond to the parameters of the original
request, without regard to further forwarding. For example, if a forwarded servlet invokes req.getServletPath() the result will be the same as if the java.servlet.include.servlet_path attribute had been acquired with
req.getAttribute(?javax.servlet.include.servlet_path?)"
My question is shouldn't this be
"......the result will be the same as if the
java.servlet.
forward.servlet_path attribute had been acquired with
req.getAttribute(?javax.servlet.
forward.servlet_path?)" ???
Plz clear the doubt, if possible.
Regards,
Amit