Re: Accessing Session attribute from action

2004-08-16 Thread Rajesh
Hai use request.getSession(); u can access from request object. vineesh . kumar wrote: Hi all, I wanna do store two values in the session when one logs in and i have to access the two values throughout the pages.also i have to access these two variables from some action classes. How can i do thi

Re: Accessing Session attribute from action

2004-08-16 Thread Erik Weber
Implement a checkLogin method in a base Action class that returns a User object or similar, whatever you need. This method takes an argument of type HttpServletRequest and looks for the User object in the request's HttpSession. Your Login Action would set this attribute, and your Logout Action

Accessing Session attribute from action

2004-08-16 Thread vineesh . kumar
Hi all, I wanna do store two values in the session when one logs in and i have to access the two values throughout the pages.also i have to access these two variables from some action classes. How can i do this thanks, vinu