Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

history.go(-1) gives error

 
paresh doshi
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Mathias Nilsson
Ranch Hand
Posts: 367
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic