U have to specify the tipe, if your field is a timestamp have to set
the annotation in this way:
@Temporal(TemporalType.TIMESTAMP)
private Date datetime;
and then u can simply assign the value in this way:
setDatetime(new Date());
cheers
On Sun, Apr 12, 2009 at 15:27, lewy87 wrote:
>
>
For anyone looking for help related to this problem:
Date must be in format "dd.mm." and you don't even need additional field
in action as well as converter class. Everything is mapped straight forward
onto bean model.
I don't know why, but it's compulsory in Struts2 framework.
Quite weird,
2 matches
Mail list logo