This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
I am setting a session variable in every page depending on if a user clicks a button or not. The pages work fine if I use the navigation button that I have on the designed website as I am setting the session variable in one of the taglibs. But when I use the forward and back button of the browser, the session variable does not hold the value as the page is loaded from cache. I tried clearing out the cache using meta tags in JSP but still it appears to me that the pages are not getting loaded as my printlns are not printing anything. Can someone suggest some other way to handle this. I tried the clearing out of cache but that does not work. Any help will be highly apperciated.
I could not get the requirement properly but I am still answering to best of my knowledge about your question.