On 1/9/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
>
> Is it possible to obtain name (relative, absolute, whatever) of
> included JSP fragment using container services?


Do you mean from *inside* the included page?  And, I assume you mean
"included" as in <jsp:include> (or using Tiles, which does essentially the
same thing)?

If so, then this is your lucky day.  The inclusion process sets a bunch
request scope attributes that describe the path information related to the
included page (where the request itself still references the outer page that
is doing the includes).  Check out the following attributes:

* 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


Michael.


Craig

Reply via email to