Multiple choice technology web technology

which Method of ActionForm is used for validation ?

  1. validate

  2. validation

  3. both

  4. No such method to validate the Form

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

In the Struts framework (a J2EE web framework), the ActionForm class has a validate() method that is called automatically during the request processing lifecycle. This method is used to perform form validation and returns an ActionErrors collection containing any validation errors. The method name is 'validate', not 'validation', and it is the standard mechanism for form validation in Struts.