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);

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-18
  • 2022-12-23
  • 2021-12-18
  • 2021-11-17
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-19
  • 2022-12-23
相关资源
相似解决方案