somehow, my validate() function from ActionForm runs the first time form is loaded. How can I turn this off so that the validate() function only runs when a user clicks on the submit button?
There is a way around to it. You need to create a DummyAction class which exteds Action. Onload of all the forms in the Presentation Layer can call this DummyAction for which the Validation is set to false. Once it is submited it will check for the validation and then to the ActionClass.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.