IMO, it is not wise to have your DAO return a list of LabelValueBean objects.

I would be more likely to use a Map or a simple bean to do that
instead of marrying your DAO layer to Struts.

Larry


On Wed, 16 Feb 2005 13:17:12 -0800 (PST), Carl Smith
<[EMAIL PROTECTED]> wrote:
> 
> We are using struts framework in our J2EE web application. In struts there is 
> a LabelValueBean class, is it a good practice to use LabelValueBean in our 
> application? For example, DAO returns a list of LabelValueBean for html drop 
> down?
> 
> There was an argument saying that it is not good to use LabelValueBean since 
> some time later if we are not using the struts framework, we need to take the 
> labelValueBean out.
> 
> Thanks.
> 
> 
> ---------------------------------
> Do you Yahoo!?
>  Yahoo! Search presents - Jib Jab's 'Second Term'
>

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

Reply via email to