But "t...@hotmail" *is* a valid email address. Note that "valid" does
not mean "can be used successfully to deliver mail."
>From RFC822:
addr-spec = local-part "@" domain
domain = sub-domain *("." sub-domain)
It is not required that the "domain" portion of the address include a
dotted sequence.
On Mon, Jan 25, 2010 at 8:31 AM, Laurent Perez <[email protected]> wrote:
> 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
>
--
Turtle, turtle, on the ground,
Pink and shiny, turn around.
------------------------------------------------------------------------------
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