commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Graham <grahamdavid1...@yahoo.com>
Subject RE: [Validator] Validators missing?
Date Thu, 25 Mar 2004 14:24:19 GMT

--- Eric.Lewis@swissinfo.ch wrote:
> Sure, but I just stripped out the parameters from Struts' FieldChecks
> that
> the Commons Validator doesn't need, leaving only
> java.lang.Object,org.apache.commons.validator.Field and it works.
> Or perhaps I'm misunderstanding something...

IMO, it's best if commons validator stays out of the validation
implementation area because that can be very specific to the application
and environment.

David

> 
> Eric
> 
> -----Original Message-----
> From: David Graham [mailto:grahamdavid1980@yahoo.com]
> Sent: Donnerstag, 25. März 2004 15:06
> To: Jakarta Commons Users List
> Subject: RE: [Validator] Validators missing?
> 
> 
> 
> --- Eric.Lewis@swissinfo.ch wrote:
> > Hmm... that's a pity. I find that the missing ones should be part of
> the
> > basic set of validators, since most validations can be done using the
> > Struts
> > set.
> 
> Struts' FieldChecks validations are dependent on the Servlet API, and
> Struts' ActionMessages class.  Commons Validator can't depend on either
> so
> we can't include them.
> 
> David
> 
> > 
> > Eric
> > 
> > -----Original Message-----
> > From: David Graham [mailto:grahamdavid1980@yahoo.com]
> > Sent: Donnerstag, 25. März 2004 14:51
> > To: Jakarta Commons Users List
> > Subject: Re: [Validator] Validators missing?
> > 
> > 
> > Commons Validator really has two distinct components:
> > 1.  A configurable (typically xml) validation engine
> > 2.  Reusable "primitive" validation methods
> > 
> > It provides no pluggable validator actions for feature 1 but feature 2
> > allows you to more easily build them.  Struts' FieldChecks uses the
> > methods from 2 to build pluggable validator actions.
> > 
> > I'll add this info to the website.
> > 
> > David
> > 
> > 
> > --- Eric.Lewis@swissinfo.ch wrote:
> > > Hi
> > > 
> > > Does anyone know why certain validators that exist in Struts are
> > missing
> > > from the Commons Validator? I mean, they do exist in
> GenericValidator,
> > > but
> > > not in the examples or TestValidator. That's why I took FieldCheck
> > from
> > > Struts, which seems to do the same, but includes range, minLength
> and
> > > maxLength.
> > > 
> > > But perhaps I'm also just a bit confused  :-)
> > > 
> > > Eric
> > > 
> > > 
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
> commons-user-help@jakarta.apache.org
> > > 
> > 
> > 
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Finance Tax Center - File online. File on time.
> > http://taxes.yahoo.com/filing.html
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: commons-user-help@jakarta.apache.org
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: commons-user-help@jakarta.apache.org
> > 
> 
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Finance Tax Center - File online. File on time.
> http://taxes.yahoo.com/filing.html
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
> 


__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message