获取request 对象的方法
HttpServletRequest request ;(要有getter setter方法)
request = ServletActionContext.getRequest();// 获取request对象 ;
request.setAttribute("map", "这样使用我就对了"); //把集合保存的request请求里面;
JSP页面中显示:
<s:property value="#parameters.mySessionPropKey"/>
感谢:
http://hi.baidu.com/200770842223/item/7e3a2f0fc854d723a1312d12
http://bin-huang-2008-163-com.iteye.com/blog/566265
session的使用
ActionContext actionContext = ActionContext.getContext();
Map session = actionContext.getSession();
session.put("USER_NAME", "Test User");
输出同request