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

All Known Implementing Classes:
    ChatLogoutAction, ChatLoginAction, GuessCharacterAction, DirectRenderFromEventAction, ExitRoomAction, StartHangmanAction, SendMessageToRoomAction, GetUpdatedHangmanAction, EnterRoomAction

Actions that want access to the user's HTTP session 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 session)
    Sets the Map of session attributes in the implementing class.