struts2中的action类中,SevletActionContext可以获取

Action类中获取request等对象的方法

session对象则通过ActionContext.getContext().getSession().put("name",value);存放值

          ActionContext.getContext().getSession().get("name"); 获取值

        

          

相关文章:

  • 2021-12-14
  • 2022-12-23
  • 2021-12-29
  • 2022-12-23
  • 2021-12-18
  • 2022-12-23
  • 2021-08-09
猜你喜欢
  • 2021-11-19
  • 2022-12-23
  • 2022-12-23
  • 2022-01-22
  • 2022-12-23
  • 2022-12-23
  • 2021-10-03
相关资源
相似解决方案