I experienced the same problems.
It is caused by the difference between
java.sql.Date, which is what the JDBC driver
delivers and java.util.Date, which is what the
peer classes expect.
The reason why you cant create a date object
from the request parameter is, because the given date string is
one of a java.sql.Date representation.
I found a workaround in writing my own date wrapper,
which can handle both types.
Although i think, there should be a better way to do it.
Maybe someone else has an idea?
rgds,
--
heiko braun, fork unstable media
http://www.unstablemedia.com
On Sat, 1 Sep 2001, Dan Bachelder wrote:
> dates on peers dataobjects...
>
> when i do:
>
> <input type="hidden" name="createStamp" value="$note.createStamp"/>
>
> my html source looks good i see "2001-09-01 23:22:59.0"
>
> then in my action:
>
> data.getParameters().setProperties( note );
>
> I get all the String and Integer fields set correctly but the createStamp
> date field is null...
>
> what am I doing wrong? how should date fields be handled?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]