struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rene Gielen <gie...@it-neering.net>
Subject Re: [S2] Is there some BigDecimal validator and conversion routines?
Date Thu, 02 Aug 2007 11:17:58 GMT
You are right, there is no bundled BigDecimal related validator in
place, but it should be quite easy to implement (eg. extend
FieldValidatorSupport). For registering, see
http://cwiki.apache.org/confluence/display/WW/Validation

BTW, is it really validation you are searching for, or is it conversion
(or both)? Note that these are two different topics.

Regards,
Rene

Gabriel Belingueres schrieb:
> Hi,
> 
> I want to enter numeric data in my form and I want it to go into a
> BigDecimal action value, however it seems that I can't validate it
> using some "bigdecimal" validator in the *-validation.xml file.
> 
> There is a double validator, but I don't know if it will introduce
> rounding or truncation errors into my BigDecimal value.
> 
> Any ideas?
> 
> TIA,
> Gabriel
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 

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


Mime
View raw message