to validate a email
how can we validate a email is valid or not?
[51 byte] By [
vicky_sa] at [2007-11-26 18:39:49]

u can either use apache commons validator, there is a EmailValidator.isValid() or GenericValidator.isEmail() it checks for valid domains, valid format of the email ids, etc...chk that out...
> u can either use apache commons validator, there is a
> EmailValidator.isValid() or
> GenericValidator.isEmail() it checks for valid
> domains, valid format of the email ids, etc...
> chk that out...
I don't know what the GenericValidator does, but the javadoc for EmailValidator says that it will return true on e.g. nobody@noplace.somedog
Kaj
i dont know how effective the EmailValidator is, but there are methods in it like isValidDomain, isValidUser...and I have seen it work when i tried a sample Shale app which uses the commons validator...the GenericValidator is just a wrapper to the EmailValidator...