Miren,

I just start with the validators too. I don't have a working example yet...
However you have the class ActionForm, ValidatorFor and ValidatorActionForm. If you don't use validation with the commons validator u extend ActionForm. If you do you a validator and you want to associate the validation with the form bean definition u should use ValidatorForm. If you want to associate with the action definition you should use ValidatorActionForm. The last comes handy when you have a formset and you want to use it on more than 1 form but with different validation rules. I hope this helped you a bit, since I am a newb too (in all struts things). So if you use the DynaValidatorActionForm u need to set in the formset name the path
<formset>
 <form name="/test/insertTest">

----- Original Message ----- From: "Miren Urkijo" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Wednesday, October 12, 2005 3:29 PM
Subject: validator. i need help


Hello
i am trying to beging using validator, struts validator.
i have some problems:
into my struts-config.xml file i have some entryes like this:
<form-bean name="ofertaForm" type="com.domain.myOfertaForm" />
Well i want to use the validator. the type of the forms must be org.apache.struts.validator.DynaValidatorActionForm ?? if it must be of this form how i make the reference to my com.domain.myOfertaForm?

Can anybody send me one example of the validator.xml and validator-rules.xml files? i want to see one example for making my examle.
Thanks. I need help


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.14/129 - Release Date: 11/10/2005





--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.14/131 - Release Date: 12/10/2005


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to