I'm using BeanUtils to populate a bean with records from a resultSet via a
HashMap built using the metadata.getColumnName for property names and the
rst.getString for values in the usual way. A date field in the resultSet
(we'll call it "myDate") is causing an exception.
Debug log shows ConvertUtils is attempting to "Convert string '2002-09-25
01:05:43.0' to class 'java.sql.Date'" but it cannot and throws a
ConversionException.
My bean imports java.sql.Date, and the instance variable is:
private Date myDate = null;
My setter is:
public void setMyDate(Date myDate) {
this.myDate = myDate;
}
How do I get the date into my bean as a date? Am I stuck with setting it as
a String?
Greg
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>