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.

There's a proposal (tentative decision) for the next rev of the Servlet spec
to provide this information as request attributes with the following names:

  javax.servlet.dispatch.request_uri
  javax.servlet.dispatch.servlet_path
  javax.servlet.dispatch.path_info

The values are based on the URI path provided in the getRequestDispatcher
call.

Our Servlet 2.1 implementations (LiteWebServer and WAICoolRunner) jump
ahead of the spec and provide these attributes already. But note that this
may change once the final decision is documented in the Servlet spec.

--
Hans Bergsten           [EMAIL PROTECTED]
Gefion Software         http://www.gefionsoftware.com

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

Reply via email to