Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlets

 
John Miller
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have one servlet that is used for forwarding requests to other classes. Let say the main servelt gets called, it evaulates the paramaters and forwards it to the appropriate clas(eg. login class).
In the login class i get the session and save the users accesslevel into the session. Here is the code snipet:
HttpSession session = req.getSession(true);
session.putValue("access", access);
Now when the user does something(eg. clicking the list button) the servlet calls the list class, i then try and get the session with the following code, but it doesnt work.
HttpSession session = req.getSession(false);
Any ideas
I using the newest version of JRUN and everything is set up perfectly.
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This question really belongs to the Servlets and JSP forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic