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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to