View Single Post
  #11 (permalink)  
Old July 16th, 2010, 03:11 AM
AmitSaste AmitSaste is offline
Registered User
 
Join Date: Jul 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Maintaining session value

hello,

Are you using RequestDiapatcher for travelling between different pages?
There are two methods Include(req,res) and forward(req,res) with RequestDispatcher.
If yes, I would suggest to use "Include(req,res)" method which retains the values of previous page and we can use those on the required page.
eg.
RequestDispatcher rd = req.getRequestDiapatcher("login.html");
req.include(req.res);

I hope this will help.