Struts 2访问Servlet API

    Struts 2访问Servlet API  在servlet中可以通过servlet API来获取Session,在Struts中如何获取Session呢?     解析:将用户名放入session 两种方案 1. 与Servlet API解耦的访问方式     --->01.使用ActionContext类获取ServletAPI对象对应的Map对象     --->02.Struts
相关文章
相关标签/搜索