Hello

Using stripes 1.4.3, I managed to validate an email input of
"t...@hotmail" (note the missing domain) using a @Validate(converter =
EmailTypeConverter.class) annotation.

I believe this is because the underlying new InternetAddress(input)
thinks "t...@hotmail" is a valid email address.
I extended the converter and validated using EmailValidator from
apache commons validation, it is now working fine. Of course this
introduces dependencies to commons/jakarta-oro.

So .. should the EmailTypeConverter be deprecated ? It does not really
validate, after all.

Thanks for your input :)

laurent


-- 
<a href="http://blog.jdeuxe.info/";>http://blog.jdeuxe.info/ - Java
entreprise tips & tricks</a>

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to