This week's book giveaway is in the Beginning Java forum. We're giving away four copies of Getting started with Java programming language and have Ashish Sarin & J Sharma on-line! See this thread for details.
I have used hibernate.
What is the possible solution for this, so that after the alert, the page stays on login.jsp or forwards to login.jsp after the alert, rather than moving forward to the login servlet, I tried request dispatcher but then it did not show the alert and moved to login.jsp again.