User hits back button - has to enter form values from scratch

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I have a JSP that renders a XHTML formatted page.

The user clicks a button (not a submit) that calls a validate
JavaScript function that submits the form.

The user clicks and goes to a confirmation page - also in XHTML.

When the user clicks the back button to edit his entries (say he's
made a mistake) - the form is cleared - automajically - and the user
has to enter all the data from scratch.

Is there a way to tell the browser to cache the data in the form so
the user can edit just the controls that require editing?

BTW, even when I create a Java POJO and populate it with data from the
form - and populate the back-button form from a request-object POJO -
the page is still cleared - and the user has to restart. That is, the
server side solution isn't working for me either.

Once I got lucky and got the form to cache using strict XHTML - but
that solution turned out to be intermittent. Sometimes it works.
Sometimes it doesn't.

Any suggestions?


Re: User hits back button - has to enter form values from scratch

Gazing into my crystal ball I observed
writing in news:e0217a48-b970-4a72-b27a-40b19587d708

Quoted text here. Click to load it

Have you tried using a real submit button, and just using javascript to
validate client side, before it gets to the server?  Is the page posting
to itself?

Adrienne Boswell at Home
Arbpen Web Site Design Services
Please respond to the group so others can share

Site Timeline