aspose file tools*
The moose likes JSP and the fly likes submitting a new request on browser back Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "submitting a new request on browser back" Watch "submitting a new request on browser back" New topic
Author

submitting a new request on browser back

Kaustubh Patil
Ranch Hand

Joined: Aug 13, 2001
Posts: 164
when I hit a browser back button my initial page is picked from the cache.
What I want to do is submit / make a new request for the first page even on browser back. The first page should reload not just picked from cache.

Any pointers ??

Thanks in advance.


Kaustubh. Mumbai, India.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Yes, prevent the page from caching.

This can be harder than it seems.
Do some google searches for "pragma" "no-cache" etc...
You may be able to find some 3rd party filters of tags that you can use to help you with this.

You'll also have to test in EVERY browser that you plan to support if your code is really counting on a new request.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: submitting a new request on browser back