标签:
//获取对象
ActionContext context = ActionContext.getContext();
//获取页面提交数据
Map<String, Object> parameters = context.getParameters();
//操作域对象相关的方法
context.put(String,Object);//相当于HttpServletRequest的setAttribute方法
context.getApplication();//返回一个Map对象,存取ServletContext属性
context.getSession();//返回一个Map对象,存取HttpSession属性
ServletRequestAware
ServletContextAware
ServletResponseAware
HttpServletRequest request = ServletActionContext.getRequest();
HttpServletResponse response = ServletActionContext.getResponse();
标签:
原文地址:http://www.cnblogs.com/ty850454/p/5156261.html