File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » JSP
Bookmark "Form data loss" Watch "Form data loss" New topic

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...

I agree. Here's the link:
subject: Form data loss
It's not a secret anymore!