
Hi,
I have readed "Spring 3 MVC Validation Example" http://www.roseindia.net/tutorial/spring/spring3/web/spring-3-mvc-validation-example.html.
In the validation form example, I have populated age's imput with a string "hello". After send the form, I receive a type conversion error:
Failed to convert property value of type java.lang.String to required type java.lang.Integer for property age; nested exception is org.springframework.core.convert.ConversionFailedException: Unable to convert value "hello" from type java.lang.String to type java.lang.Integer; nested exception is java.lang.IllegalArgumentException: Unable to parse hello
Is it possible to customize this error message? I'd like to say something user-friendly.
Thanks in advance,
ATV.

Hi,
According to http://stackoverflow.com/questions/4082924/jsr-303-type-checking-before-binding/4083198#4083198 I have modified message properties in order to add the follows:
typeMismatch=A numeric value was expected!
Thanks.
ATV
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.