PDA

View Full Version : Handling sessions values in controller


anieshuk
Sep 1st, 2005, 05:15 AM
Hai users

I need to creata a session varible in one controlller and then access the value of the same value in another controller.I used request.getSession() but it is not working properly.
Can anyone suggest any other method.

Thanks
Aniesh UK

Steve O
Sep 1st, 2005, 10:22 PM
Can you post your code?

anieshuk
Sep 2nd, 2005, 12:04 AM
Hai users

I am sorry i have not tried the correct procedure so that only i have asked the sample code or idea of creating the session variable in the one controller and accessing it in another controller

Help pls
Thanks
anieshuk

cyber
Sep 2nd, 2005, 12:09 AM
you can always get the session object from the request in your controller.

HttpSession session = request.getSession();


hth,

cyber

anieshuk
Sep 2nd, 2005, 08:08 AM
HAI

Thanks for giving the tips, again its not working properly can u post me a small simple scode

Thanks
anieshuk