struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <newton.d...@yahoo.com>
Subject Re: [struts] struts result going to a current page
Date Sun, 17 Feb 2008 15:43:09 GMT
--- Dale Newfield <Dale@Newfield.org> wrote:
> P.S.:  If that request.getHeader bit doesn't work, it's because I think 
> the OGNL #request object might be the request namespace rather than the 
> actual HttpServletRequest object.

That's correct; #request is the request context, not the request itself.

I posted the OGNL for getting the actual request a few days ago; it's a
little twisted. From that post (which was asking how to get the current
request URL):

<s:property
value="#context.get(@org.apache.struts2.StrutsStatics@HTTP_REQUEST).getRequestURL()"/>

Dave


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message