我怎样才能得到我配置的HttpServletRequest对象。org.springframewrok.web.context.request.RequestContextListenerweb.xml
我正在Spring 3.0使用Struts2.
我知道我可以ServletContext通过实现来获得ServletContextListener,但我需要request侦听器中的对象。
我怎样才能得到我配置的HttpServletRequest对象。org.springframewrok.web.context.request.RequestContextListenerweb.xml
我正在Spring 3.0使用Struts2.
我知道我可以ServletContext通过实现来获得ServletContextListener,但我需要request侦听器中的对象。
使用RequestContextHolderwhich是. requestDestroyed_requestInitializedRequestContextListener