Multiple choice technology programming languages

Correct validate () method?

  1. public ActionErrors validate(ActionMapping mapping,HttpServletReuest reuest)

  2. public ActionError validate(ActionMapping mapping, HttpServletReuest reuest)

  3. public ActionError validate(HttpServletReuest reuest, HttpServletResponse response)

  4. None of the above

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

The validate() method signature is public ActionErrors validate(ActionMapping mapping, HttpServletRequest request). It returns ActionErrors (plural) to collect multiple validation failures, and accepts the mapping and request objects.