This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes Form data loss 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 » JSP
Bookmark "Form data loss" Watch "Form data loss" New topic
Author

Form data loss

Linda Thomas
Ranch Hand

Joined: Jun 21, 2004
Posts: 36
My project has a few forms for the user to fill in and then display their information for verification. I see that when I click the back button on the browser or a back button I put on the form the previous page (with the form they just filled out) appears but empty, none of the information persisted back.
My last project was using beans but this one I can't so if someone could help me out that would be great.

We use a basic version of JSP, all database connections are done through a class file except for listboxes which never seemed to like stored procedures (we theorize because the listbox is a page included/imported within a form which is usually also inserted into a page).

How do I easily maintain the information the user just entered in a previous page's form if they've clicked submit and moved ahead. I see it on the web when I fill forms out and assumed it was a basic feature that going back brings up the previous page exactly as it was left and only by F5 - Refreshing the page could you get the data to clear.
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
I think your browser is not caching the page. See the browser settings.
Kuldeep Vaishnav
Ranch Hand

Joined: May 23, 2004
Posts: 72
or may be store the entered data in session...


Kuldeep
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Form data loss
 
Similar Threads
help on navigational menu
Caching Problems with borwsers.
Cache control through response object.
Webflow2: not pre-populating the form on back button
history.back problem