File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Request Dispatcher and form submission" Watch "Request Dispatcher and form submission" New topic

Request Dispatcher and form submission

Bhagwat Chouhan

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

Joined: Jan 10, 2002
Posts: 63873

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

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Request Dispatcher and form submission
jQuery in Action, 3rd edition