ServletRequestAware 2007-09-03 - By Vamsi
Back why can't u get request object from ServletContext?
-- -- Original Message -- -- From: "Alvaro Sanchez-Mariscal" <alvaro.sanchezmariscal@(protected)> To: "Struts Users Mailing List" <user@(protected)> 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 <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) >
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To unsubscribe, e-mail: user-unsubscribe@(protected) For additional commands, e-mail: user-help@(protected)
|
|