Re: EmailValidator

2010-12-13 Thread Brian Thompson
TBF, it was a really old version of XWork. It was addressed and made more complicated in the most recent version at the time I looked into it (still not *fixed*, though ... everyone knows how to validate an email address until they actually read the RFCs!). -Brian On Mon, Dec 13, 2010 at 1:00

Re: EmailValidator

2010-12-13 Thread Greg Akins
On Mon, Dec 13, 2010 at 1:50 PM, Brian Thompson wrote: > I've looked into this before.  The email validator resolved down to some > really old code in XWork with a regex that looked something like this: > > [a-z0-...@[a-z0-9].[a-z]^3 Thanks.. I hadn't looked at the source.. It looks like the API

Re: EmailValidator

2010-12-13 Thread Greg Akins
On Mon, Dec 13, 2010 at 12:20 PM, Dave Newton wrote: > IIRC the default email validator isn't as robust as the page- long RFC email > regex. I'd suggest either a patch, ora custom validator. > Thanks. I'll try to submit a patch after I get something more robust working -

Re: EmailValidator

2010-12-13 Thread Brian Thompson
I've looked into this before. The email validator resolved down to some really old code in XWork with a regex that looked something like this: [a-z0-...@[a-z0-9].[a-z]^3 I strongly agree with Dave's advice. Broken email validators are too common on the web. -Brian On Mon, Dec 13, 2010 at 11:

Re: EmailValidator

2010-12-13 Thread Dave Newton
IIRC the default email validator isn't as robust as the page- long RFC email regex. I'd suggest either a patch, ora custom validator. Dave On Dec 13, 2010 12:11 PM, "Greg Akins" wrote: > I just tried to use angrygreg+...@gmail.com as an email , and the > Struts EmailValidator doesn't like it (S