Hi all,
What is the way to check a bad format from a form ?
I have this:
But if my user put a string into the weight field, I get this:Code:public class Profil { @Notnull(message="Must be not null") private Double weight; ...getset }
I didn't find the tips to display an appropriate message.Code:Failed to convert property value of type java.lang.String to required type java.lang.Double for property weight; nested exception is org.springframework.core.convert.ConversionFailedException: Unable to convert value zd from type java.lang.String to type java.lang.Double; nested exception is java.lang.NumberFormatException: For input string: "zd"
Thanks


Reply With Quote
