You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by mojoRising <jp...@averoinc.com> on 2008/03/25 22:04:42 UTC
Best way to get request information
Struts 2 - Java - JSP
For storing user login information in the database, when a user logs in I
need to get the following types of information: Hostname, IP address,
User-Agent, sessionId, etc.
Before using Struts2, I would access the HTTPSession and request object and
use methods such as:
request.getHeader()
request.getHeaderNames()
request.getRemoteAddr()
What is the best practice to access this information using Struts 2 actions?
--
View this message in context: http://www.nabble.com/Best-way-to-get-request-information-tp16288480p16288480.html
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
Re: Best way to get request information
Posted by Laurie Harper <la...@holoweb.net>.
mojoRising wrote:
> Struts 2 - Java - JSP
>
> For storing user login information in the database, when a user logs in I
> need to get the following types of information: Hostname, IP address,
> User-Agent, sessionId, etc.
> Before using Struts2, I would access the HTTPSession and request object and
> use methods such as:
> request.getHeader()
> request.getHeaderNames()
> request.getRemoteAddr()
>
> What is the best practice to access this information using Struts 2 actions?
http://struts.apache.org/2.0.11/docs/how-do-we-get-access-to-the-session.html
http://struts.apache.org/2.0.11/docs/how-can-we-access-the-httpservletrequest.html
http://struts.apache.org/2.0.11/docs/how-can-we-access-the-httpservletresponse.html
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org