Multiple choice technology programming languages

Which file contains java script for client side validation using validation framework in struts?

  1. validation.xml

  2. validator-rules.xml

  3. both files

  4. None

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

In the Struts validation framework, the validator-rules.xml file contains the standard validation rules along with the JavaScript code required for client-side validation. In contrast, validation.xml is used to define the specific validation rules applied to individual form fields, rather than holding the underlying JavaScript code.