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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to