PDA

View Full Version : EMail validator



davsclaus
Sep 15th, 2004, 10:02 AM
Hi

Browsing the code in the org.springframework.validation I do not see an email validator?

I am looking for an email validator to use in my business logic layer. Is commons-validator the best option?

robh
Sep 17th, 2004, 03:08 PM
Currently the validaton support in Spring is only framework level - that is there is a hook for providing a validator to the MVC framework but there are no helper classes.

You would be best of using Commons Validator as a solution for now, plus it looks like commons validator is forming the base of the new validation support that is in the sandbox now.

Rob

davsclaus
Sep 20th, 2004, 07:06 AM
Thanks Rob

Sadly our project uses SLSB and thus classloading and classpaths are not an easy task deploying to WebSphere.

So my collegue ended up doing a java.net.INetAddress constrcut and catching the exception in case of failure. Avoiding adding more .jar files in the MANIFEST.MF file.

Claus