You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mohd Amin <mo...@xymphany.com> on 2003/05/18 14:01:37 UTC

Populating java.util.Date

Hi,
 
I have a Value Object which has date as a few of its attributes. Have
been getting a lot of errors in populating from ActionForm to the VO.
Are there any tutorials to read to solve this. Currently using a normal
ActionForm, tried with DynaActionForm first, but failed. Any tutorials
also on DynaActionForm with dates. Have got 2 books - Programming
Jakarta Struts and Professional Struts Application but both do not have
much on Date attributes.
 
Thanks
Amin

Re: Populating java.util.Date

Posted by Vic Cekvenich <vc...@baseBeans.com>.
Just a few hours before you asked this question, an answer was posted on 
formating a date, very similar, see if this puts you in a good direction.

OT: I try not to use VO/DTO, instead I do a formbean has a DAO helper, 
and they copy data from DAO to formBean, I find it better architecture 
and KISS.

Mohd Amin wrote:

>Hi,
> 
>I have a Value Object which has date as a few of its attributes. Have
>been getting a lot of errors in populating from ActionForm to the VO.
>Are there any tutorials to read to solve this. Currently using a normal
>ActionForm, tried with DynaActionForm first, but failed. Any tutorials
>also on DynaActionForm with dates. Have got 2 books - Programming
>Jakarta Struts and Professional Struts Application but both do not have
>much on Date attributes.
> 
>Thanks
>Amin
>
>  
>

-- 
Vic Cekvenich,
Struts Instructor,
1-800-917-JAVA

Advanced <a href ="baseBeans.com">Struts Training</a> and project recovery in North East. 
Open Source <a href ="baseBeans.com">Content Management</a>  basicPortal sofware
Best practice<a href ="baseBeans.com">Struts Support</a> v.1.1 helper ScafflodingXPress




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org