简体   繁体   English

如何使用requestProcessor处理会话

[英]How Handle session using requestProcessor

I am working on struts,i want to know how to handle session using org.apache.struts.action.RequestProcessor ? 我正在研究struts,我想知道如何使用org.apache.struts.action.RequestProcessor处理会话? Where in have to check the existence of session throughout the app ? 在哪里必须检查整个应用程序中会话的存在?

request.getSession();

In the handling methods of RequestPostprocessor you are supplied with an HttpServletRequest attribute. RequestPostprocessor的处理方法中,提供了HttpServletRequest属性。 You can get the session from it. 您可以从中获取会话。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM