This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
.. code for checking if email already exists in db
..if yes, then
HttpSession session = request.getSession();
session.setAttribute("error.email.msg", e.getMessage());
request.getRequestDispatcher("JSPs/SignUp.jsp").forward(request, response);
----------------------------------------------------------------------------------------------------------------------------
when i submit the SignUp form , i am redirected to the same form but error message is not being displayed.
Please let me know if anything else has to added.
bhanu chowdary
Ranch Hand
Joined: Mar 09, 2010
Posts: 256
posted
0
Replace ${error.email.msg} with ${sessionScope["error.email.msg"]} and see if you are able to see the error messgae
Ria Dev
Greenhorn
Joined: Aug 18, 2010
Posts: 6
posted
0
Thanks Bhanu, your solutions works.
If scope is not mentioned then, is it not that all the scopes(session,application,page,request) are searched for that particular variable? please correct me if i am wrong. As there were no other variables with the same name in any other scope, i used directly ${var}.I didnt get why it didnt work for me.