This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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

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: 63208

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

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Request Dispatcher and form submission
It's not a secret anymore!