• Post Reply Bookmark Topic Watch Topic
  • New Topic

Stop Submition of form while refresh

 
abinash das
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

The problem that i am recently facing is something like,

I m having loginpage say login.jsp which i am getting after hitting /login at web.xml.
In the login.jsp there is two fields username and password and a submit button;
am giving un and pwd and pressing submit.It goes to LoginServlet with a parameter say status="".

Once i m submitting the form by clicking submit Where it interact with db and sendsback the response to Servlet the problem is the url is not changing it remains LoginServlet?param=status but comming back to the log,jspthrough a requestDispatcher
here the problem lies as the Url is not changing.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please read this article paying particular attention to the P-R-G pattern.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!