1 //获取request请求 2 HttpServletRequest request = ServletActionContext.getRequest(); 3 //获取session请求 4 HttpSession sess = ServletActionContext.getRequest().getSession(); 5 ActionContext actioncontext = ActionContext.getContext(); 6 Map session = actioncontext.getSession();
1 Map session=ActionContext.getContext().getSession(); 2 session.put("user", qx);