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.
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
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?
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
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
5 matches
Mail list logo