Multiple choice technology web technology

Action classes have to extend ActionSupport for declarative validation in struts 2

  1. True

  2. False

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

Declarative validation in Struts 2 works through XML validation files that are named based on the Action class, not whether the class extends ActionSupport. Any class can have declarative validation as long as the validation XML follows the naming convention (ClassName-validation.xml). The ActionSupport extension is not required.