srnambiar
asked on
Reloading JSP on back button click
Hi,
I am using JSP/javascript in my application.
When a user navigates from one page to another and clicks on the back button I want to reload the previous page via a server call instead of loading it from browser cache.
I am currently using POST method for form submission.
Any idea how I can acheive this?
I am using JSP/javascript in my application.
When a user navigates from one page to another and clicks on the back button I want to reload the previous page via a server call instead of loading it from browser cache.
I am currently using POST method for form submission.
Any idea how I can acheive this?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
No Choice, if you don't want to set cache header, you may need to POST to your previous page from your cancel button.
or a javascript like: onclick="window.location.h ref = 'mypreviouspage.jsp'; " at cancel button maybe be useful too... ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Yes, sigmacon is right. The Page Expired is caused by using POST. If you don't have sensitive info and not too much of it, use GET.
By the way, I read somewhere that the no-cache headers will only work in IE if the document is less than 64kb? Must be a bug in IE..
By the way, I read somewhere that the no-cache headers will only work in IE if the document is less than 64kb? Must be a bug in IE..
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I do not want this message to appear. Instead I want the previous page to reload.