In an interceptor I have a need to store a value in the session. I can see a session map that I find in the invocation's object graph that is available in the interceptor, but storing back to the map has no effect. Is there a "Struts 2 way" to get/set the session within an interceptor or do I just do something like this? HttpServletRequest request = (HttpServletRequest) context.get(StrutsStatics.HTTP_REQUEST); HttpSession session = request.getSession(true); //set session as needed
- Session in Interceptors Eric Lentz
- Re: Session in Interceptors Maurizio Cucchiara