You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Kevin Wilson <Ke...@comtrol.com> on 2003/01/23 22:14:18 UTC
Form Data & IE vs NS
[problem]
Form data not retained using back operation in IE v6.0.2800.1160 after a
form is posted but a required field was missing. Versions of IE prior to
this would allow the retention of form data.
[info]
Netscape v7.0 retains the data after an unsuccessful post and the back
button is used to return.
[System]
Tomcat 4.0.4 (using built-in HTTP connector) on SuSE Linux 8.1
MySQL database 3.x
Servlet application using JDBC.
Any ideas as to why the above version of IE doesn't keep form data in cache
would be very appreciated.
Thanks,
Kevin
Re: Form Data & IE vs NS
Posted by Joseph Shraibman <jk...@selectacast.net>.
Is it a https:// url?
Kevin Wilson wrote:
> [problem]
> Form data not retained using back operation in IE v6.0.2800.1160 after a
> form is posted but a required field was missing. Versions of IE prior to
> this would allow the retention of form data.
>
> [info]
> Netscape v7.0 retains the data after an unsuccessful post and the back
> button is used to return.
>
> [System]
> Tomcat 4.0.4 (using built-in HTTP connector) on SuSE Linux 8.1
> MySQL database 3.x
> Servlet application using JDBC.
>
> Any ideas as to why the above version of IE doesn't keep form data in cache
> would be very appreciated.
>
> Thanks,
>
> Kevin
>
--
Joseph Shraibman
joseph@xtenit.com
Increase signal to noise ratio. http://xis.xtenit.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Form Data & IE vs NS
Posted by Bill Lunnon <bi...@mirrim.com.au>.
[Suggestion]
Don't rely on browsers to retain the previous data on a a posted form.
If you have detected an error, retrieve the data that was posted (via
request.getParamter()) and populate the form yourself.
Sample scriptlet could be
<%
String lastFoo = "";
//error detected, haveError set to true
if (haveError == true) {
lastFoo = request.getParameter("foo");
}
%>
<input type="text" name="foo" value="<%=lastFoo%>>
This solution has worked on all browsers, regardless of version, because it
doesn't rely on the browser.
Hope this helps
Bill
-----Original Message-----
From: Kevin Wilson [mailto:Kevin.Wilson@comtrol.com]
Sent: Friday, 24 January 2003 8:14 AM
To: Tomcat-User@Jakarta. Apache. Org (E-mail)
Subject: Form Data & IE vs NS
[problem]
Form data not retained using back operation in IE v6.0.2800.1160 after a
form is posted but a required field was missing. Versions of IE prior to
this would allow the retention of form data.
[info]
Netscape v7.0 retains the data after an unsuccessful post and the back
button is used to return.
[System]
Tomcat 4.0.4 (using built-in HTTP connector) on SuSE Linux 8.1
MySQL database 3.x
Servlet application using JDBC.
Any ideas as to why the above version of IE doesn't keep form data in cache
would be very appreciated.
Thanks,
Kevin
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>