Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Email address validation in Stripes?

 
pawan chopra
Ranch Hand
Posts: 417
jQuery Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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?


Regards,
Pawan Chopra.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's what EmailTypeConverter is for. The field holding the email address should be annotated something like this:
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic