#strust2

strust2中使用session

在Struts2里,如果需要在Action中使用session,可以通过下面两种方式得到1.通过ActionContextclass中的方法getSession得到2.Action实现org.apache.struts2.interceptor.SessionAware接口的方式来对session进行操作下面先看一个采...
代码星球 代码星球·2020-12-29