hi, i have a date field that requires MM/dd/yyyy input.
however, if a user types "xyz", the form is re-displayed
with an error message as follows:
Failed to convert property value of type [java.lang.String] to required type [java.util.Date] for property 'startDate'; nested exception is java.lang.IllegalArgumentException: Could not parse date: Unparseable date: "xyz"
Suppose, we dont use any validator (client or server-side), how
can i change the above to let a user see a friendly message?
I would like to say that server side validator (specified through
<property name="validator"><ref bean="beanValidator"/></property>)
is not working, because a validator is called after
data binding is finished.
correct me if i am wrong.
thanks for your input!
pete
p.s. i am using spring 1.1.5 and Commons validator 1.1.4


Reply With Quote