Earlier in this conversation, Jeromy proposed two ways of accessing
the current URL (or URI), one through EL and the other through OGNL

> ${pageContext.request.requestURI}
> <s:property 
> value="%{#context['com.opensymphony.xwork2.dispatcher.HttpServletRequest'].requestURI}"/>

That works great until (it seems) Tiles2 gets in the picture.  By that
point, the address returned is that of the Tiles layout (with
extension ".jsp") and not the logical address of the request.  (I
haven't made a systematic study of the exact conditions for this
phenomenon to occur.)

It seems to me that, having access to the current (logical) URL (the
one that generated this request) is a fairly common need.  Has anyone
come up with another way of getting hold of it?

There is a failsafe option:  make an interceptor that places the URL
in question in the Request scope, but that seems a little heavy-handed
to me...

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to