File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Page expires 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 "Page expires on Browser back" Watch "Page expires on Browser back" New topic
Author

Page expires on Browser back

Gavi Raaghav
Ranch Hand

Joined: Apr 28, 2005
Posts: 82
We have a web application.When the user traverses from JSP A to JSP B and then clicks the browser back button to goto A the page cannot be displayed screen appears,however if then the user clicks the refresh button and submits the page then then page A gets displayed properly.What is the fix for the back button to behave correctly that is without refresing the page shud get displayed.
I am using IE6.0,WAS5.1 and using cookies for Session Management in WAS
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60782
    
  65

Personally I would say that that is the appropriate behavior. Unlike static web sites, web applications should expire pages immediately so that the back button cannot be used to show data that could be stale.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Gavi Raaghav
Ranch Hand

Joined: Apr 28, 2005
Posts: 82
But we have a requirement to do the same.Can something be done in the code or configuration to achieve this?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Page expires on Browser back
 
Similar Threads
about using <META HTTP-EQUIV="pragma" CONTENT="no-cache">
Refresh in browser
how to disable the back button when the user logouts...
Browser Back not working
Browser back button