Re: Session variable setting

2010-05-20 Thread Pierre BRARD
Hi, Thank you for your answer. Fortunatly I found the solution to my problem here: http://www.mail-archive.com/user@struts.apache.org/msg71987.html I had to use the Struts 2 session instead of the HttpServletRequest session : // old HttpSession session = request.getSession(); // now Map sessio

Re: Session variable setting

2010-05-20 Thread Kartik Kumar
I have found that when your interceptor implements SessionAware and puts some key/value pairs in the map, the session attributes are not available to the action even if it implements SessionAware. To get the session attribute, I did something like this: @SuppressWarnings("unchecked") Map sessionM

Session variable setting

2010-05-20 Thread Pierre BRARD
Hi all, I am implementing a login system with Struts 2. Basically, I have a custom interceptor which checks in session if a particular variable is set. If it is, the user is considered already logged in and if it is not the variable is set in session ( session.setAttribute("connectedUser", user);