what does the validate attribute in struts action tag?
thanks everyone :)
-
the validate attribute in struts action tag (1 messages)
- Posted by: Douglas Goulart
- Posted on: December 11 2002 08:14 EST
Threaded Messages (1)
- the validate attribute in struts action tag by Web Master on December 11 2002 09:40 EST
-
the validate attribute in struts action tag[ Go to top ]
- Posted by: Web Master
- Posted on: December 11 2002 09:40 EST
- in response to Douglas Goulart
Setting validate to causes the ActionServlet to invoke the validate method on the ActionForm object for that Action. To make use of it, you need to set it to true and override the ActionForm's validate method in you ActionForm subclass.
If your validate method returns a non-empty ActionErrors object, then struts will not invoke the Action, instead it will go back to the original page (input) where you can then render the validation errors.
HTH