1、从ActionContext中获取;
ActionContext.getContext().getSession();
2、实现SessionAware接口。
protected Map<String, Object> session;
public void setSession(Map<String, Object> session) {
this.session=session
}
1、从ActionContext中获取;
ActionContext.getContext().getSession();
2、实现SessionAware接口。
protected Map<String, Object> session;
public void setSession(Map<String, Object> session) {
this.session=session
}

被折叠的 条评论
为什么被折叠?