• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Servlet Problem with Back Button on IE  RSS feed

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All:

This is a weird problem I am facing on IE.

I have a servlet which is invoked by the doGet() method. This servlet
has a FORM which has few fields. One of the field has a hyperlink which
makes a window.open() call for Onclick. This pop-up allows a user to
search for some value. The result of the search is displayed in a
SELECT box. Based on the value selected in this SELECT box, the field
in the servlet that called this pop-up gets populated. After this is
done, I close this pop-up & click on the proceed button of the FORM
(using POST) which takes us to another servlet. Then when I click on
the back button, the fields on the form which were populated are gone.

I have made the following analysis:
(i) On clicking the back button, a request is sent to the server.
(ii) It works on FireFox & not on IE
(iii) If I do not use the hyperlink to bring the pop-up, and then I
click on proceed and then back, the fields do not vanish.
(iv) I tried using http://www.ggogle.com to the call on window.open().
Does not help
(v) The very action of using pop-up by clicking on it causes this
problem

Any help or tips in this regard would be really appreciated.

Thanks in advance.

--Mahesh
 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
IE doesn't seem to save sessions across different browser windows and Firefox does.
Regards,
Naresh
 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Naresh,
I am not sure about Mahesh's problem, but what you said about IE sessions is not true. On Windows XP each new IE instance is started in the context of a new process, and does not share non-persistent sessions with other IE windows. However, if you do a Ctrl-N or File>>New>>Window and spawn another window in the context of the current process, the sessions are shared between the two windows.
As Mahesh's popup is spawned by the current window, it should share the session with the parent window.
The issue of the session not being shared between IE processes is a matter of process isolation and it behaves differently between OS versions. This behaviour will not be seen in the Win9x family.
 
Mahesh Kumar Kumar
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys,

Solved the problem,

Its counter intutive,

I put in
<META HTTP-EQUIV="pragma" CONTENT="no-cache">

in the header and it started caching it.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!