G
gilgantic
I am having an issue with loosing session data on a Struts/WML
application. I add the logged on user to the current session
(HttpSession) in my LoginAction using the following code:
session.setAttribute("USER", user);
But when I retrieve the user in my following SetupAction class:
User user = (User)session.getAttribute("USER");
it gives a NullPointerException, because the
'session.getAttribute("USER");' returns null. Also, my session variable
is initialized to:
HttpSession session = request.getSession(false);
I use JSP which generate WML code when compiled. Is there something in
my WML, Struts, or etc. which could clear session data?
Any suggestions are welcomed.
application. I add the logged on user to the current session
(HttpSession) in my LoginAction using the following code:
session.setAttribute("USER", user);
But when I retrieve the user in my following SetupAction class:
User user = (User)session.getAttribute("USER");
it gives a NullPointerException, because the
'session.getAttribute("USER");' returns null. Also, my session variable
is initialized to:
HttpSession session = request.getSession(false);
I use JSP which generate WML code when compiled. Is there something in
my WML, Struts, or etc. which could clear session data?
Any suggestions are welcomed.