Up to ValidatorFAQ

What's the difference between DynaValidatorForms? and DynaValidatorActionForms??


When you configure your forms to be DynaValidatorForms?, then struts will choose to use the form you defined in validation.xml with the same name as the action mapping's name attribute. This should also correspond to a form definition in the struts-config form-beans section.

With DynaActionValidatorForms?, struts looks for a form definition in validation.xml with the name the same as the path attribute of your action mapping.

i.e. with DynaValidatorForms? you always get the same validation done on a particular struts-config-defined formbean.

With DynaValidatorActionForms? any particular validation definition in validation.xml is executed for a particular URL, the path in the action mapping.

Up to ValidatorFAQ

  • No labels