struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Graham <grahamdavid1...@yahoo.com>
Subject Re: Can Validor ignore datatype validation if value is null?
Date Fri, 25 Jul 2003 04:26:32 GMT
--- Brian Chaplin <bchaplin@chaplinsolutions.com> wrote:
> I have a field I want to validate as a datatype ONLY if it is not null. 
> If
> null, I want to bypass validation.
> Can I do this?
> <field property="amount" depends="double">
> 
> </field>

Yes, that should work.  The validations were decoupled from the required
check before 1.1.

David

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


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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


Mime
View raw message