why can't u get request object from ServletContext?
----- Original Message -----
From: "Alvaro Sanchez-Mariscal" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Monday, September 03, 2007 6:53 AM
Subject: Re: ServletRequestAware
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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Alvaro Sanchez-Mariscal Arnaiz
Java EE Architect & Instructor
[EMAIL PROTECTED]
---------------------------------------------------------------------
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]