struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From " " <>
Subject Email validation regex - client vs. server
Date Sat, 06 Oct 2012 10:30:23 GMT
Hi all,

I'm using @EmailValidator annotation to check an email address.
The Struts2 documentation
html( mentions that 
following regular expression is being used to check the email address:


I'm just wondering why following regular expression is actually being 
generated for the client side validation instead of the first one? (This is 
what I see in the generated HTML page)

The reason why I ask this question is that the client side validation (using
the second reg ex) considers for example this address aaa@aa.aaaaaaa
(mailto:aaa@aa.aaaaaaa) as a valid email address.
Do I miss something or is it a bug?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message