Having implemented a RequestDispatcher myself, I also realized the need
to change the Request URI information during include().
According to the javadocs we aren't violating the spec. The below quote
is referring (incorrectly I think) to the ServletResponse.
A Quote from RequestDispatcher.include description:
"The ServletResponse object passed to this servlet has the caller's
request
path. The response object only has access to this servlet's
ServletOutputStream and PrintWriter objects."
I think the difference between the two is that the Request object can be
permanently changed when RequestDispatcher.forward() is called and
temporarily changed when RequestDispatcher.include() is called.
The URI information needs to be adjusted to include() the resource. Once
the resource has been includ()ed the Request object must have the
original Request URI information when continuing.
-James Klicman
Scott Ferguson wrote:
>
> True. But if you use RequestDispatcher.include, the URI information is _not_
> adjusted.
>
> How do you get the JSP path when its included in another servlet?
>
> Including a JSP in Caucho JSP only works because we violate the JSDK and the
> JSP specs.
>
> Scott Ferguson
> Caucho Technology
>
> Hans Bergsten wrote:
>
> > If you're using RequestDispatcher.forward in your servlet to dispatch
> > to a JSP page, the URI related information should be adjusted for the
> > JSP page according to the Servlet API 2.1 specification. If that's
> > not what you see it's most likely a bug in the servlet engine you're
> > using.
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff JSP-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".