Don't recall off-hand; IIRC there's a request wrapper that has a getRequest()
method that I thought returned the underlying request, but I could be
off-target on that one.
Personally I still think exposing the request via the action is a better way
of doing it, if this is the way you're going to implement this functionality.
Dave
--- Tommy Becker <[EMAIL PROTECTED]> wrote:
> Ugh. Thanks for the info, but now there's another problem. I'm using
> Tiles 2, and apparently it's manipulating the request url. When I do
> this, I'm getting back the url to the Tiles template I'm using to render
> the page, not the originally requested url Any ideas on how to get
> around that?
>
>
> Dave Newton wrote:
> > --- Tommy Becker <[EMAIL PROTECTED]> wrote:
> >
> >> Unfortunately it is. I'm creating a url to another site using <s:url>
> >> and passing the current url as a parameter. I suppose I don't *have* to
>
> >> use <s:url> Is it not possible?
> >>
> >
> > The S2 OGNL docs say there's access to the request *context*, which means
> the
> > request attributes.
> >
> > If you're doing this in the result of an S2 action one way would be to
> expose
> > the request in the action. If you're a glutton:
> >
> > <s:property
> >
>
value="#context.get('com.opensymphony.xwork2.dispatcher.HttpServletRequest').getRequestURL()"/>
> >
> > Dave
> >
> >
> >> Randy Burgess wrote:
> >>
> >>> If the value is not going into a struts tag then just use JSTL.
> >>>
> >>>> From: Tommy Becker <[EMAIL PROTECTED]>
> >>>>
> >>>> Is there a way to get the URL for the current page using struts tags?
> I
> >>>> thought I had access to the HttpRequest, and therefore could just use
> >>>> getRequestURL() but it appears the docs have led me astray :/
> >>>> <http://www.motricity.com>
> >>>>
> >>>>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> NOTICE: This e-mail message is for the sole use of the intended
> recipient(s) and may contain confidential and privileged information of
> Motricity. Any unauthorized review, use, disclosure or distribution is
> prohibited. If you are not the intended recipient, please contact the
> sender by reply e-mail and destroy all copies of the original message.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]