I seem to be having a problem with dates, and I can't seem to find the appropriate docs to explain if what I'm trying to do is correct or not.
I have a bean def such as..
<bean id="somebean" class="MyBean">
<property name="someDate">
<value>10/25/2004</value>
</property>
</bean>
This doesn't seem to work and generates...
org.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.lang.String] to required type [java.util.Date]
Should I be using a custom PropertyEditor here for Dates or am I just using a bad string format for the date? Or am going down a completely wrong path?


Reply With Quote
.