• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Handling Browser Back Button & Multiple Tabs

Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic