On Thu, 11 Jul 2002, Adolfo Miguelez wrote:
> Date: Thu, 11 Jul 2002 13:33:24 +0000
> From: Adolfo Miguelez <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: dynabeans as value objects in struts 1.0.X
>
>
> Hi All,
>
> I quick question with a quick response. I have successfully tested to create
> value objects as dynabeans in Struts 1.1b1. Custom tags are able to inspect
> themselves dynabeans (from Commons - BeansUtils package).
>
> However, in production we still have Struts 1.0.2 and we planned switching
> only to Struts 1.1 when it be released.
>
> On other hand, we intend to implement a generic value object for all our
> apps. From the reasons above, it seems that a dynabean based value object
> should be fine for Struts 1.0 applications.
>
> The question is: Does struts custom tags are able to inspect properly
> dynabeans in Struts 1.0.2 as they are in Struts 1.1?
>
No, they don't. The custom tags in 1.0.2 use the older version of
BeanUtils and PropertyUtils that do not know what a DynaBean is.
You can put commons-beanutils.jar into a 1.0.2 app and use dynabeans for
your back end stuff. It's just the Struts tags that will not recognize
them.
> Thanks in advance,
>
> Adolfo.
>
Craig
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>