Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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 Murach's Java Servlets and JSP this week in the Servlets forum!
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: 60766
    
  65

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 agree. Here's the link: http://aspose.com/file-tools
 
subject: Request Dispatcher and form submission
 
Similar Threads
Session problem or the browser problem?
2 times login required?
error with j_security_check
Avoiding the refresh warning with back
HTTPS back to HTTP( Sorry, Try again)