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.
|