Kalra, Ashwani wrote:

hi,
how can I validate an optional field. ie validate only if there is some
value in it. For example. I want to validate a field which should of type
int.But it should be validated only if use has entered some value in it.


hi,

if you are validating in your form or action class you can check if the field is not empty (!= null or !equals("") and then check for correct int value.

Axel

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to