This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JSP and the fly likes Page expires on Browser back Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply 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: 56213
    
  13

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.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Page expires on Browser back
 
Similar Threads
Browser back button
Browser Back not working
Refresh in browser
how to disable the back button when the user logouts...
about using <META HTTP-EQUIV="pragma" CONTENT="no-cache">