File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes avoid page expired in forms when clicking back Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "avoid page expired in forms when clicking back" Watch "avoid page expired in forms when clicking back" New topic

avoid page expired in forms when clicking back

L Davies

Joined: Oct 30, 2003
Posts: 1
I need to create an application form where the user has multiple pages to complete. The user needs to be able to flick backwards and forwards between pages if they so wish and still have their data entered appear. The data entered can only be submitted to a database on the last page and once the whole form is complete.
All the examples I've seen is display a "Page Expired" if you click on the browsers back button so is this possible? ... can someone point me in the right direction please.
Many thanks
Dave Vick
Ranch Hand

Joined: May 10, 2001
Posts: 3244
That message is from the browser itself and comes up whenever you try to navigate to a page that had data 'posted' to it. Your best bet would be to implement your own back button on the page and ask them to use that one. If you check out the HTML/Javascript forum there are multiple conversations on disabling the back button but none are absolutley fool-proof, and most users dont appreciate it.
Hope that helps a little

Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Welcome to JavaRanch, Laura!
As Dave already suggested, here in the Saloon we do have other forums that might be a better place to hold such a conversation, but I don't really know where to move this thread yet. Are you working with Servlets and/or JSPs, or are you looking for a strictly HTML/JavaScript solution?

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
I agree. Here's the link:
subject: avoid page expired in forms when clicking back
It's not a secret anymore!