You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Carl Smith <cc...@yahoo.com> on 2005/02/16 22:17:12 UTC

RE: how to integrate struts project with hibernate?

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'

Re: how to integrate struts project with hibernate?

Posted by Larry Meadors <la...@gmail.com>.
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
<cc...@yahoo.com> 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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org