Differences between revisions 1 and 2
Revision 1 as of 2005-03-22 05:48:35
Size: 871
Editor: anonymous
Comment: missing edit-log entry for this revision
Revision 2 as of 2009-09-20 23:12:14
Size: 871
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Up to ["ValidatorFAQ"] Up to [[ValidatorFAQ]]
Line 14: Line 14:
Up to ["ValidatorFAQ"] Up to [[ValidatorFAQ]]

Up to ValidatorFAQ


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

Answer(s)

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

ValidatorActionForms (last edited 2009-09-20 23:12:14 by localhost)