I'm using the validate method on ActionForm, and the validate execute every time that I request the URL contacts.do, the problem is that the error message appear in the first time that I request the URL. The message should not appear in the first time, but just when the client push the OK button... how can I cancel the error message if is the first request?
Joined: Oct 29, 2003
Are you using ValidatorActionForm? If not all you have to do is return empty ActionMessages in the validate method:
If you are using ValidatorActionForm, override validate and inside code: