Re: Struts 2.1.6 conversion problem with java.util.Date

2009-04-15 Thread Stefano Tranquillini
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: > >

Re: Struts 2.1.6 conversion problem with java.util.Date

2009-04-12 Thread lewy87
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,