Save This Page
Home » struts-2.1.8.1-src » org.apache » struts2 » interceptor » [javadoc | source]
org.apache.struts2.interceptor
public interface: SessionAware [javadoc | source]

All Known Implementing Classes:
    MailreaderSupport, GetUpdatedHangmanAction, Login, DirectRenderFromEventAction, Registration, Logout, ChatLoginAction, GuessCharacterAction, ExitRoomAction, EnterRoomAction, Subscription, SendMessageToRoomAction, ChatLogoutAction, StartHangmanAction, Welcome

Actions that want access to the user's HTTP session attributes should implement this interface.

This will give them access to a Map where they can put objects that can be made available to subsequent requests.

Typical uses may be cached user data such as name, or a shopping cart.
Method from org.apache.struts2.interceptor.SessionAware Summary:
setSession
Method from org.apache.struts2.interceptor.SessionAware Detail:
 public  void setSession(Map<String, Object> session)
    Sets the Map of session attributes in the implementing class.