Hi all.  I noticed that the built-in Struts2 email validator is too strict
with characters it allowd.  In my case, it was preventing me from using
Gmail's trick with the plus sign.
(If I have the email address [EMAIL PROTECTED], I can add a plus sign and any
additional text, and it all gets "forwarded" to my example account. So,
[EMAIL PROTECTED] <[EMAIL PROTECTED]>,
[EMAIL PROTECTED]<[EMAIL PROTECTED]>
, [EMAIL PROTECTED] <[EMAIL PROTECTED]>, etc. all go to my
[EMAIL PROTECTED] account.)

Unfortunately, the email validator only allows letters, numbers, '.', '-',
 and '_'.  I went ahead and substituted a new regex in the <param> element
in my validator.xml, but I think we should expand the allowable characters
in the default pattern.

Here's a useful post I found regarding the issue:
http://haacked.com/archive/2007/08/21/i-knew-how-to-validate-an-email-address-until-i.aspx

Thoughts?

Tobin

Reply via email to