标签:
ActionContext.getContext().put("list", list);
ActionContext.getContext().getValueStack().push(listName);//准备回显数据
session中放数据:
ActionContext.getContext().getSession().put("user", user);
/** 注销 */
public String logout() throws Exception {
ActionContext.getContext().getSession().remove("user");
return "logout";
}
action中的request:
ServletActionContext.getRequest().getRemoteAddr();//获取IP
struts2中的session、request 、和action往页面中传值的方法
标签:
原文地址:http://www.cnblogs.com/qiyc/p/5875693.html