• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Request Dispatcher and form submission

 
Bhagwat Chouhan
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,

Recently i have started making a site. I am submitting my login form to a servlet and internally the request is dispatched to the home page of the site after logging in the system. Since the usrl in the browser doesn't change using the Request Dispatcher, if i will click the refresh button on my home gape, it asks me to resubmit the form data. I thin it is asking me to resubmit the login form data. I came to the conclusion that i can track the user state internally on server using a class for caching the requests. Please let me know if there is a proper solution to this issue.
serv.JPG
[Thumbnail for serv.JPG]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64959
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read this article and pay particular attention to the P-R-G pattern.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic