Hi

I have a simple input form, an ActionForm, and validating set to true.

In the validate() method of ActionForm I check the length of the input
field (say max 5 chars) and if too long populate the errors collection.

The error message correctly displays if I enter a name longer than 5 chars.

If I then enter a valid length name, I get the forwarded page saying
Success - so far so good.

But if I now click the browser BACK button I get the input form displayed
(correct), with the input field containing the correct length input value
(correct) but with the error message saying name too long, which is wrong.

I have a reset() method in my ActionForm setting the name value to null but
this has no effect.

Any ideas please on how to prevent the error message(s) displaying when the
page is displayed after hitting back button?

Thank you

Rob Breeds


Reply via email to