[Not a developer, but I've been following this because I ran into the date
problem early on.]  I use BeanUtils.copyProperties to move things back and
forth from ActionForms (all String properties) and my DTO's, as shown in the
struts-example webapp.  At some point I thought needed a Java "Date" object
in the DTO (that requirement went away with further development).  And the
existing SQL formatted Date converter wasn't going to work, my database
doesn't understand that format.

What was suggested to me is writing and registering my own Converter with
BeanUtils.  I don't think I went through with it, but that made perfect
sense to me.  IMO, Struts shouldn't get involved with Date conversions,
that's already the job of Commons BeanUtils.

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University, PA, IRM 

Reply via email to