Friday, August 16, 2013

How to customize JSR-303 Error Messages

try to set the message like this 

@Pattern(regexp=".+@.+\\.[a-z]+", message="my.message.key") and add in your messages.properties the same key and the translation

http://forum.springsource.org/archive/index.php/t-83353.html

No comments:

Post a Comment