ServletRequestAware 2007-09-02 - By Alvaro Sanchez-Mariscal
Back 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@(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: user-unsubscribe@(protected) > For additional commands, e-mail: user-help@(protected) > >
-- Alvaro Sanchez-Mariscal Arnaiz Java EE Architect & Instructor alvaro.sanchezmariscal@(protected)
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To unsubscribe, e-mail: user-unsubscribe@(protected) For additional commands, e-mail: user-help@(protected)
|
|