RE: Difference between ValidatorForm and ValidatorActionForm

2004-03-24 Thread Janarthan Sathiamurthy
Hi, ValidatorActionForm - This class extends ValidatorForm and provides basic field validation based on an XML file. The key passed into the validator is the action element's 'path' attribute from the struts-config.xml which should match the form element's name attribute in the validation.xml.

RE: Difference between ValidatorForm and ValidatorActionForm?

2003-06-26 Thread Butash, Bob
Yansheng, Since ActionForms are intended to be reused across multiple actions, you might have different validation requirements depending on the context that the ActionForm is being used. One Action might require a certain field but that field may not be required for another Action that is using

RE: Difference between ValidatorForm and ValidatorActionForm?

2003-06-26 Thread Kamholz, Keith (corp-staff) USX
between ValidatorForm and ValidatorActionForm? Yansheng, Since ActionForms are intended to be reused across multiple actions, you might have different validation requirements depending on the context that the ActionForm is being used. One Action might require a certain field but that field may

RE: Difference between ValidatorForm and ValidatorActionForm?

2003-06-26 Thread Butash, Bob
: RE: Difference between ValidatorForm and ValidatorActionForm? Yansheng, Since ActionForms are intended to be reused across multiple actions, you might have different validation requirements depending on the context that the ActionForm is being used. One Action might require a certain field

Re: Difference between ValidatorForm and ValidatorActionForm?

2003-06-26 Thread Jamie M. Guillemette
The core difference is what will be used as reference when running the validation lets say you have an form object that spans 3 actions ( is shared by ) and all of them have validate = true in the struts-config.xml if you use ValidatorForm to then all of the validation rules you specify will be