wood burning stoves 2.0*
The moose likes Servlets and the fly likes Request Dispatcher and form submission Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Request Dispatcher and form submission" Watch "Request Dispatcher and form submission" New topic
Author

Request Dispatcher and form submission

Bhagwat Chouhan
Greenhorn

Joined: Nov 07, 2009
Posts: 5
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.


[Thumbnail for serv.JPG]

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61648
    
  67

Read this article and pay particular attention to the P-R-G pattern.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
 
subject: Request Dispatcher and form submission