On Sun, 13 Jun 2004, Jack Lauman wrote:

Is there a way to clear all the form fields after a JSTL form is successfully submitted so that if the user hits the back button and redisplays the form its fields will be empty?

JSTL doesn't have the concept of forms, so I assume you're referring to HTML forms. A couple of things to note about the Back button:


* If the request was a GET and the page was allowed to be cached by the browser (as determined by the HTTP response headers), then the Back button will not cause a request to the server, so there's nothing you can do.

* If the request was a GET and the page was not allowed to be cached, a new request will be made to the server with the same parameters as the previous request. Then it's up to you to decide what to do.

* If the request was a POST, the user will be asked if they want the same form data posted a second time. If they accede, the request will be reposted with the same data, and you're in the same boat as above.

--
Martin Cooper



Jack


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to