IntelliJ Java IDE
The moose likes JSP and the fly likes IE doesn't retain form fields Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "IE doesn Watch "IE doesn New topic
Author

IE doesn't retain form fields

Pritam Banerjee
Greenhorn

Joined: May 08, 2002
Posts: 9
hello,
I have a form generated by a JSP page.
The form contains a few (7-8) fields.
When the page is submitted it goes to a servlet and finally the request gets forwarded to the next JSP that renders the next html.
There is a cancel button in the next page (that is effectively doing history.back() in the onClick event). When this cancel button is clicked the request is again going to the server (instead of the browser taking it from it's local cache) and hence the form in the previous page is reloaded with all fields empty. This means the user would have to re-type all fields.
The same thing works fine in Netscape, but the reload of the previous page on history.back() is happening for IE browser only.
How do I make sure that the previous page form doesn't reload ?
I haven't used any META tags like expires or no-cache, no-store etc.
Any help would be appreciated.
Regards,
Pritam
Mark Howard
Ranch Hand

Joined: Feb 14, 2001
Posts: 285
Pritam
I'd check the Tools --> Internet Options --> General --> Settings in your IE browser, where you are able to specify how frequently the browser should download the page from the server.
RAJESH RASTOGI
Greenhorn

Joined: Jan 20, 2002
Posts: 17
hello,
have u checked the input type for the button on which u r applying the onClick event.
if u have given input type submit change it to button.
now it will get work.
 
 
subject: IE doesn't retain form fields
 
Threads others viewed
history.back problem
Session problem or the browser problem?
My First Struts App
Refreshing/Reloading JSPs when user hits Back button
IE 5.5 Page Reload Issues
IntelliJ Java IDE