File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes history.go(-1) gives error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "history.go(-1) gives error" Watch "history.go(-1) gives error" New topic

history.go(-1) gives error

paresh doshi
Ranch Hand

Joined: Nov 20, 2006
Posts: 81
I am having a back functionality in my jsp. I am using history.go(-1) but i get error on page.
"Warning: Page has Expired".

Is there any other way out to implement the back functionality without error.

Please help.

Thanks.<br />Paresh Doshi<br />SCJP 1.4
Mathias Nilsson
Ranch Hand

Joined: Aug 21, 2004
Posts: 367
Are you using post or get?

If you change your form method from POST to GET then the problem should be fixed, although you may have to rework your code a bit.

I agree. Here's the link:
subject: history.go(-1) gives error
It's not a secret anymore!