aspose file tools*
The moose likes Object Relational Mapping and the fly likes @Email annotation validating correct email format Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "@Email annotation validating correct email format" Watch "@Email annotation validating correct email format" New topic
Author

@Email annotation validating correct email format

udaya krishna
Ranch Hand

Joined: Mar 19, 2009
Posts: 46

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
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10354
    
    8

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?


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
udaya krishna
Ranch Hand

Joined: Mar 19, 2009
Posts: 46

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
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10354
    
    8

You are welcome
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: @Email annotation validating correct email format