Hi,
I have an optional field on my form that represents a money amount.
I have declared the corresponding Command class to have a BigDecimal to hold this value.
Spring parses it correctly when the value is given but throws an exception when it is not.
How best to catch this and allow null for the BigDecimal?Code:Error code: Failed to convert property value of type [java.lang.String] to required type [java.math.BigDecimal] for property 'maxAmount'; nested exception is java.lang.NumberFormatException: null
Thanks
Rakesh


Reply With Quote