This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes JSP and the fly likes Handling Browser Back Button & Multiple Tabs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Handling Browser Back Button & Multiple Tabs" Watch "Handling Browser Back Button & Multiple Tabs" New topic
Author

Handling Browser Back Button & Multiple Tabs

Kumara Sharma
Greenhorn

Joined: Sep 29, 2010
Posts: 6
Hi all,

I have a JSP, which includes a drop down containing some values(say Blue, Red, Black).
My current page tab has Black in the dropdown and I go to Page X(by clicking a URL).
If I open new tab with the same page, I still see Black.

Currently Tab1 had Black. Tab2 also has Black.

I change Tab2s drop down to Blue.

I come to Tab1 and press Browsers Back Button. I ll be taken to the JSP where the dropdown was displayed from Page X.

Here is the problem, I see Blue in the dropdown, But that page should have actually shown Black. That page had actually reloaded
from the server again which displays the latest value Blue.

How will one know whether On Clicking Browsers Back button, the page reloads from the server/ is taken from Cache.

In my case, I do not want to reload it from the server again, I just want it to display out of my Browsers Cache. How can I do it and
are there any consequences handling it that way.

Thanks in advance - Kumar
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Handling Browser Back Button & Multiple Tabs
 
Similar Threads
Passing hidden fields between 5 different pages
calling function while re postingthe same page..javascript
Drop down box issue
How to add error message before sendRedirect
history problem in jsp page