You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Kris Cheemal <kc...@yahoo.ca> on 2002/02/11 22:09:10 UTC
Problem accessing session variables - getAttribute returning null
Hi Guys,
I am having a problem with accessing my session
varibles. I am using Tomcat 3.2.3 with JBoss. I have a
servlet heirarchy.
HttpServlet
|_BasicServlet
|_ LoginResultServlet
|_ LoginRequiredServlet
I have a public Static fianl String USER_PROFILE =
"userprofile" defined in BasicServlet.
As soon as I login, I am seeting it in
LoginResultServlet I retrieve the user profile, assign
it to a variable called "userProfile", and putting it
in the session using the method
request.getSession.setAttribute (userProfile,
USER_PROFILE). In LoginRequiredServet, I am using
request.getSession.getAttribute (USER_PROFILE) to
authenticate the user. The problem is that
getAttribute(USER_PROFILE) is returning null. I did
not have this problem on 3.1. I am just wondering what
the problem is. Any ideas/solutions??
Thanks in advance,
Kris
______________________________________________________________________
Web-hosting solutions for home and business! http://website.yahoo.ca
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>