标签:put family response on() 请求响应 code 响应 log 类型
//获取HttpServletRequest HttpServletRequest request = ServletActionContext.getRequest(); //获取HttpServletResponse HttpServletResponse response= ServletActionContext.getResponse(); //获取session回话 HttpSession session = request.getSession(); Struts封装的请求回话 //首先获取ActionContext ActionContext actionContext = ActionContext.getContext() //请求级以map的形式存放数据 actionContext.put(key,value); //获取map类型的session Map<String, Object> session = actionContext.getSession(); //回话级以map的形式存放数据 session.put(key,value);
标签:put family response on() 请求响应 code 响应 log 类型
原文地址:http://www.cnblogs.com/HackerBlog/p/6132508.html