Re: Using validate.xml and validate()

2010-12-28 Thread Paul Benedict
Yes. You need to extend ValidatorForm (or ValidatorActionForm) to override the validate() method. On Tue, Dec 28, 2010 at 1:55 PM, Anjib Mulepati wrote: > So my form should extends from ValidatorForm? > Anjib > > On 12/28/2010 2:50 PM, Paul Benedict wrote: > >> Option 2 is fine. >> >> On Tue, De

Re: Using validate.xml and validate()

2010-12-28 Thread Anjib Mulepati
So my form should extends from ValidatorForm? Anjib On 12/28/2010 2:50 PM, Paul Benedict wrote: Option 2 is fine. On Tue, Dec 28, 2010 at 1:45 PM, Anjib Mulepati wrote: 1. Complex in the sense my own custom validation for multiple emails. 2. So do you mean i can go with Option 2? Anjib

Re: Using validate.xml and validate()

2010-12-28 Thread Paul Benedict
Option 2 is fine. On Tue, Dec 28, 2010 at 1:45 PM, Anjib Mulepati wrote: > 1. Complex in the sense my own custom validation for multiple emails. > 2. So do you mean i can go with Option 2? > > Anjib > >

Re: Using validate.xml and validate()

2010-12-28 Thread Anjib Mulepati
1. Complex in the sense my own custom validation for multiple emails. 2. So do you mean i can go with Option 2? Anjib On 12/28/2010 2:38 PM, Paul Benedict wrote: On Tue, Dec 28, 2010 at 12:43 PM, Anjib Mulepatiwrote: Ok to make my self clear I have three field to check name,email and message

Re: Using validate.xml and validate()

2010-12-28 Thread Paul Benedict
On Tue, Dec 28, 2010 at 12:43 PM, Anjib Mulepati wrote: > Ok to make my self clear I have three field to check name,email and > message. > I want name and message to be required but email required complex > validation that is not provided with struts. > What kind of "complex" validation? > As '

Re: Using validate.xml and validate()

2010-12-28 Thread Anjib Mulepati
Ok to make my self clear I have three field to check name,email and message. I want name and message to be required but email required complex validation that is not provided with struts. As 'required' is provided in Struts I can set validation rule for name and message simply in xml file. And

Re: Using validate.xml and validate()

2010-12-28 Thread Paul Benedict
Anjib, It depends on how you configure your struts action. If you have validate="true" on, then no -- failed validation will never make it to your action. If you want to call validate() yourself in execute() and perform additional validation, go for it. Paul On Tue, Dec 28, 2010 at 12:20 PM, Anj

Using validate.xml and validate()

2010-12-28 Thread Anjib Mulepati
Struts 1.3.8 Can I use validate.xml and validate() method at same time a) for same field in both place and b) different disjunctive fields. Anjib - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional comm