We re-read some of the material on struts at Ted Husted's site, especially 
the catalog of tips. In there we discovered the usage of BeanUtil.populate 
and BeanUtil.describe. With those utilities in hand we are now performing 
the necessary data movement and translation in our action classes.

Mark


>From: "Mark Nichols" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Where (how) to translate data type to string for use in form-bean
>Date: Thu, 09 May 2002 13:43:01 -0500
>
>I'm sure that this question has been asked and answered before, but I am 
>not
>having any luck finding it in the archive.
>
>My DAO has data types that match the column data types in the database. My
>form-bean wants to have everything be a string. Where do I put
>responsibility to convert the data?
>
>In the form-bean? That would mean the form knows about the model...
>
>In the DAO? Some place else?
>
>Do I have two sets of attributes, one matching the database columns and the
>other strings so I can use the PropertyUtils.copyProperties()?
>
>TIA
>/\/\ark
>
>_________________________________________________________________
>Send and receive Hotmail on your mobile device: http://mobile.msn.com
>
>
>--
>To unsubscribe, e-mail:   
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>
>


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to