you have to use (Dyna)ValitatorActionForm instead of (Dyna)ValidatorForm. Then in your validation.xml file for each new rule you specify you have to replace the name of the form by the name of the action using the form. And the rule will be applied to the form only if it's called from the action you gave the name. In your case you have to specify 1 form, 3 actions and 3 rules.
thomas > -----Original Message----- > From: manglu [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 26, 2003 1:33 AM > To: [EMAIL PROTECTED] > Subject: Validator and Dispatch Actions > > > Hi, > > I want to use the Struts Validator to do validation. > > > The Same action form is used for SEARCH, CREATE and EDIT. > > The validation rules for each of them is different( from the > other two) > > How do i go about defining such a config in the validation > config file. > > Appreciate any help. > TIA > Manglu > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

