struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xianwinwin <xianwin...@gmail.com>
Subject Re: how to do: a double validation?
Date Wed, 26 Mar 2008 21:19:49 GMT

Thank you Dave!!!
yes, this works for checking the range but I wish to check the validity of
the field.
meaning, I'd like to provide my error message in case the user gave wrong
input. how do I do that?
Thank you again



newton.dave wrote:
> 
> --- xianwinwin <xianwinwin@gmail.com> wrote:
>> 
>> say a user inputs a value for a double field (say amount of money); the
>> value should be a double (eg, 53.23) 
>> 
>> Question: if the user enters something like ABCD how can I provide the
>> error message? 
>> I would like to do that with annotation? (say....you enter an invalid
>> value...)
>> 
>> 
>> what type of validation whould that be?!?!?!
> 
> Er... a Double validation?
> 
> http://struts.apache.org/2.x/docs/doublerangefieldvalidator-annotation.html
> 
> Dave
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/how-to-do%3A-a-double-validation--tp16314886p16316211.html
Sent from the Struts - User mailing list archive at Nabble.com.


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


Mime
View raw message