Multiple choice technology programming languages

Reset () method of ActionForm returns?

  1. ActionErrors

  2. ActionError

  3. void

  4. ActionMapping

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

The reset() method in ActionForm has return type void. This method is called by the Struts controller to reset the form bean's properties to default values before populating it with new request parameters. The method signature is 'public void reset(ActionMapping mapping, HttpServletRequest request)'. It's not used for validation (that's validate() which returns ActionErrors).