Anyone know how to force a page to be reloaded when the user clicks on the
back button in a browser?
Reason I'm asking is as follows
1. User clicks on client maintenance
2. ReadServlet is called which creates beans and forwards to
clientMaintenance.jsp
3. User enters client details and clicks the 'save' button
4. WriteServlet is called which creates beans, calls business rule methods
and saves the client
5. WriteServlet forwards to ReadServlet which forwards to
clientMaintenance.jsp to display the newly saved client
6. User clicks the back button. The clientMaintenance page that existed pre
the user clicking the save button is displayed.
7. User clicks the save button and another client with the same details is
created. Bummer
Basically what I want to do is for the page to be reloaded from the server
when the user clicks the back button.
I have used every caching meta tag I can think of to force the page to be
reloaded with no success (I checked the archives regarding a similar
discussion but had no luck). If I go to IE and select Tools -> Internet
Options -> Settings -> Check for new versions of stored pages -> Every visit
to the page - everything works fine but obviously I cant rely on users
having this browser setting.
This has got to be a fairly common problem. Anyone worked out a way to get
around it?
Alternatively (this would be a bit of a lst resort), is it possible to
a. clear the old page from the browser history
b. Make the old page expired.
Thanks.
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html