File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Application Frameworks and the fly likes Email address validation in Stripes? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Email address validation in Stripes?" Watch "Email address validation in Stripes?" New topic

Email address validation in Stripes?

pawan chopra
Ranch Hand

Joined: Jan 23, 2008
Posts: 410


I am working on Stripes and Its looking great to me, i just want to know is there inbuilt email address validation in Stripes? Like we have required and all using annotations?

Pawan Chopra.

Pawan Chopra
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41634
That's what EmailTypeConverter is for. The field holding the email address should be annotated something like this:

Ping & DNS - my free Android networking tools app
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299

Not that this type converter requires that you have mail.jar and standard.jar in your application's classpath to work. The validator resuses some code from the javamail API.

GenRocket - Experts at Building Test Data
subject: Email address validation in Stripes?