I use
Struts 1.1 with
Tomcat 5.0 as my webserver.
My
JSP has 3 text boxes. All three can't be left empty and one of them is accepts an email address. I want this text box to be validated for "email" and "required".
Validation works for 'required', but doesnt work for 'email'. I am probably missing something here. Nothing happens abt the email check, it merely goes onto the next Action class - if the text box is not empty.
Please have a look at my code:
Validation.xml:
In struts_config.xml:
And in ApplicationResources.properties:
I checked validator_rules.xml. It does contain scripts to validate email.
What am I missing here? Please help.
Thanks
-- $uDhA