Struts Validation
Hi All
I have doubt in validation using struts
There is a text field "user id" in the form.
validation 1: The user id can be a email id.. if it is in email id format then it should be validated against email id validation rules.
validation 2: The user id can also be a alpha numeric value (other than email id) in that case custom validation should be done.
(If the user id in email id format then validation 1 should be performed else validation 2 should be performed)
The validation rules are working fine if any one of them is mentioned.How should i perform the validation as mentioned above
Thanks in advance
sri
__________________
Try Try Try Until You Succeed
|