By default org.hibernate.validator.constraints.Email
shows not a well-formed email address
but I want to show foo is not a well-formed email address
if the user enters just foo
where an well formatted email is required. So I need to have a placeholder for foo
. The property in my domain object is annotated with @Email
.
I have Email = {0} is not a well-formed email address
in my resource bundle file which shows email is not a well-formed email address
when the user enters foo
for the email field.
Is it possible to generate that entered value and display it for the error message?
I am using Hibernate 3.5 with Spring MVC 3.
Thanks.