struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alvaro Sanchez-Mariscal" <alvaro.sanchezmaris...@gmail.com>
Subject Re: ServletRequestAware
Date Mon, 03 Sep 2007 01:23:34 GMT
As far as I know, the only way is asking HttpServletRequest, and thus,
implementing ServletRequestAware.

If you want to keep HttpServletRequest code out of your actions,
consider implementing an interceptor, or even a raw servlet filter.

Alvaro.

On 9/3/07, stanlick <stanlick@gmail.com> wrote:
>
> I have an action that determines the requester IP address.  The action
> implements ServletRequestAware, but I don't like it being all tangled up in
> the Servlet API.  Is there a way to get the IP address another way.  The
> RequestAware interface seems to map to only request attributes.
>
> Thanks,
> S
> --
> View this message in context: http://www.nabble.com/ServletRequestAware-tf4369669.html#a12454602
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
Alvaro Sanchez-Mariscal Arnaiz
Java EE Architect & Instructor
alvaro.sanchezmariscal@gmail.com

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


Mime
View raw message