hi there,
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?!?!?!
@Validations(
stringLengthFields ={
@StringLengthFieldValidator(type = ValidatorType.SIMPLE,
trim = true, minLength="1" , fieldName = "age", message = "you forgot
this
one!!!! ")
}
)
public String updatePolicy()
{
// do something here
}
--
View this message in context:
http://www.nabble.com/how-to-do%3A-a-double-validation--tp16314886p16314886.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]