Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在研究 struts,我想知道如何使用 org.apache.struts.action.RequestProcessor 处理会话?必须在哪里检查整个应用程序中是否存在会话?
request.getSession();
在RequestPostprocessor您的处理方法中提供了一个HttpServletRequest属性。您可以从中获取会话。
RequestPostprocessor
HttpServletRequest