Difference Betwixt Struts Validatorform Vs Validatoractionform - Interview Question
Struts render ii classes ValidatorForm as well as ValidatorActionForm for validating shape fields. Instead of doing basic validation past times using the validate() method inward Action class, these classes allows yous to leverage rich characteristic of validation framework provided past times Djakarta Struts framework. You tin exercise declarative validation past times defining rules inward XML config files similar validation-rule.xml or validations.xml every bit well. Since Struts is i of the pop Web MVC frameworks, yous tin likewise role its validation framework on whatever Java spider web application implemented using Struts. Now, coming dorsum to the question, what is the actual divergence betwixt ValidatorForm as well as ValidatorActionForm inward Struts? They both expect quite similar, right? Well, fifty-fifty though both ValidatorForm as well as ValidatorActionForm provides validation back upward as well as tin live on used to validate shape fields inward Struts application...