Multiple choice technology programming languages

If validate="true" in struts-config.xml action tag then what is the sequence of execution?

  1. Validate () method of ActionForm, if error return to error.jsp

  2. Validate () method of ActionForm, execute () of Action, if error return to jsp mentioned in input tag.

  3. Validate () method of ActionForm, if error return to jsp mentioned in input tag.

  4. None of the above

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

When validate='true' in struts-config.xml action mapping, the sequence is: 1) ActionForm populate() from request parameters, 2) ActionForm validate() is called, 3) If validate() returns non-empty ActionErrors, control returns to the JSP specified in the 'input' attribute of the action mapping. The Action's execute() is NOT called if validation fails.