org.apache.struts2.interceptor
接口 SessionAware


public interface SessionAware

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.


方法摘要
 void setSession(Map<String,Object> session)
          Sets the Map of session attributes in the implementing class.
 

方法详细信息

setSession

void setSession(Map<String,Object> session)
Sets the Map of session attributes in the implementing class.

参数:
session - a Map of HTTP session attribute name/value pairs.