Putting Objects into Session Scope
- Once a user is properly logged in, his/her information needs to be available
across requests for the duration of their session
- LoginAction's
execute() method shows how user information is encapsulated in a
UserView object (essentially another Javabean) and stored as an
attribute in session scope
- Actions associated with other requests can then
retrieve user information as long as the session is alive
- Struts sessions
by default live for 30 minutes when idle