On Thu, 19 Sep 2002, Darren Hill wrote:
> Date: Thu, 19 Sep 2002 09:21:12 -0400
> From: Darren Hill <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
> Subject: BeanUtils Question
>
> Not sure if this is the write forum for this.. anyway.
>
An alternative would be the COMMONS-USER list, but many Struts folks use
this library as well.
> I have a Stateless Session Bean that acts as my Service Layer in my App. (
> It seperates my Domain Layer[EJB's] from my App Layer [Actions/Views] )
>
> My 'views' are simply beans the duplicate the EJB's.
>
> I want to use the BeanUtils.copyProperties to populate the 'view' with the
> EJB values. But I'm having trouble.
>
It's pretty tough to help without knowing what "having trouble" means.
Are you getting exceptions (if so, what's the stack trace)? Are
properties not getting copied? ???
> Also ... would it be better to use PropertyUtils.copyProperties since the
> properties have exactly the same type?
>
PropertyUtils.copyProperties() will be faster than
BeanUtils.copyProperties() because it won't waste time trying to figure
out what conversions are necessary. Therefore, you should use the
PropertyUtils version when you can (i.e. when all the property types
match).
> Sorry if that is very clear .. its my first time using this .. be gentle.
>
> Darren.
>
> --
> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>