Type is enum property in object.
jsp:
<form:radiobutton path="type" value="Male" />
java:
public enum TestType
{
Male, Female;
}
and got error
Unable to convert value 'Male' from type 'java.lang.String' to type 'java.lang.Enum'; reason = 'java.lang.Enum is not an enum type'
A simpler solution can be found at spring forum, without the need for any custom bindings.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With