views:

33

answers:

0

I need to validate two text fields as email and mobile number. I need to validate these based on the user selection of radio buttons. If the user selected the email option in radio button, then email text filed should be validated if he selected mobile number then need to validate mobile number text field. Since I use struts2 I have no idea how to implement the validation-xml to achieve above scenario. Even I'm not sure whether I can achieve this using struts2 validation-xml?

Please share your experience to solve the issue.