> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 29, 2004 12:28 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Using 1 Validator definition for 2 different forms?
> 
> 
> No, I mean I have a user1Form, and user2Form.
> They are identical forms as we are using Tiles to display them.

Validator validates on form name... if they are the same form (ie same class) and 
different names,
I don't think you can with 1.1.  If you're using tiles to display the same form, in 2+ 
different places on the same jsp page, you don't necessarily have to have seperate 
form names for each ( javascript may have issues with this though, I don't do enough 
javascript to know).

You might want to look at how ValidatorForms validate method works, and override it in 
your forms to look 
at the correct validation name.   That's a bit of a hack though.

> 
> 
> -----Original Message-----
> From: Jim Barrows [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 29, 2004 12:21 PM
> To: Struts Users Mailing List
> Subject: RE: Using 1 Validator definition for 2 different forms?
> 
> 
> If you're talking about masks, then you can use globals.  You 
> could also
> create your own custom validator, iirc 1.2 will have some inheritance
> features, but not sure what scope yet since I'm not using 1.2.
> 
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, June 29, 2004 12:12 PM
> > To: [EMAIL PROTECTED]
> > Subject: Using 1 Validator definition for 2 different forms?
> > 
> > 
> > How can I Use 1 Validator definition for 2 different forms?
> > 
> > 
> > ---
> > > Thanks...
> > > Mick Knutson
> > > 
> > > 525 Market Street, SF, CA  94103
> > > (415) 222-1020
> > > [EMAIL PROTECTED]
> > > MAC A0103-223
> > ---
> > 
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > 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]
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to