I have a form that has 2 e-mail fields. One is the entry field with an "add-email" button next to it that, when clicked, adds the e-mail to a CSV list in the other (locked) e-mail field. this is part of an overall form. Apparently, the built in
Struts e-mail validator doesn't handle a null condition because it is allowing me to submit a null with the add-email button. I can't set it as required or the main form won't let me submit without an e-mail in that field which should be empty upon final form submission. The user should have clicked add-email to populate whats in the e-mail field to the CSV list of e-mails.
What can I do here? the Struts e-mail validator works in ensuring the correct format (
[email protected]) but somehow it interprets nothing as being a correct e-mail too...
Thanks
~Ryan