• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

@Email annotation validating correct email format

 
Ranch Hand
Posts: 69
Netbeans IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am using @Email annotation in my entity to store an email address.When I enter an email address in the following format it is displaying "Invalid Email Format" eventhough the format is correct:

ABC-GRP-SPE-Test-DL @ap.mydomain.com

Any idea how to fix it? or I have no other way other than built in validation

Thanks
Udaya Krishna.A
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

udaya krishna wrote:
I am using @Email annotation in my entity to store an email address.When I enter an email address in the following format it is displaying "Invalid Email Format" eventhough the format is correct:
ABC-GRP-SPE-Test-DL @ap.mydomain.com


Is that a correct working mail ID? (With the whitespace between the DL and @) If you attempt to send a mail to that id as is (with the white space) is the mail received?
 
udaya krishna
Ranch Hand
Posts: 69
Netbeans IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Thanks for the quick response.Actually it is a group id which contains a list of email ids.But thank you.That was such a silly mistake while pasting.I guess i was thrown off by the weird format.Its working fine now after removing the space.

Thanks alot
 
Maneesh Godbole
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You are welcome
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic