Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / September 2005

Tip: Looking for answers? Try searching our database.

Servlet Problem with Back Button IE

Thread view: 
Ace - 19 Sep 2005 20:03 GMT
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 helpful.

Thanks in advance.
Roedy Green - 19 Sep 2005 22:51 GMT
>Any help or tips in this regard would be helpful.

the brute force approach is to write an Applet to gather the data and
send it in.  Then you can send it in field by field if you want, or at
least validate field by field.

Another thing to investigate is Ajax.  See
http://mindprod.com/jgloss/ajax.html
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.

Drazen Gemic - 20 Sep 2005 13:39 GMT
> Any help or tips in this regard would be helpful.

There is a general problem with IE and some forms, it is not related
to JSP or Servlets. Google will offer some problem descriptions
and some solutions that may work in some situations,
but I think that there is a bug in IE which needs to be solved.

There was even an article on Microsoft site, in the knowledge base.

Try google with related keywords, but omitt "JSP", "Servlet" and "Java"

DG
Ace - 28 Sep 2005 20:05 GMT
Solved the problem,

Its counter intutive,

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

in the header and it started caching it.

> Hello All:
>
[quoted text clipped - 23 lines]
>
> Thanks in advance.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.