You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Trieu, Danny" <DT...@ebuilt.com> on 2001/09/08 06:09:04 UTC

Does anyone know how to get the parents BeanInfo ?

I know this a litle out of scope, but I need this info to extend the Struts
existing tag.  That is I want to write a tag that will print out all of the
given bean properties as hidden tags inside a from.  These properties
includes the properties of its parent classes.

appreciate your helps ...


Re: Does anyone know how to get the parents BeanInfo ?

Posted by Erik Hatcher <ja...@ehatchersolutions.com>.
Have a look at BeanUtils (from Jakarta Commons) and use the
BeanUtils.describe to get all the read capable properties.   I'm assuming
that it would give you the read capable properties of any parent class of
that bean as well (although I don't know that for certain).   Please correct
me if I've misspoken about this - I'm attempting an answer in order for me
to learn more about BeanUtils!  :)

    Erik


----- Original Message -----
From: "Trieu, Danny" <DT...@ebuilt.com>
To: <st...@jakarta.apache.org>
Sent: Friday, September 07, 2001 9:09 PM
Subject: Does anyone know how to get the parents BeanInfo ?


> I know this a litle out of scope, but I need this info to extend the
Struts
> existing tag.  That is I want to write a tag that will print out all of
the
> given bean properties as hidden tags inside a from.  These properties
> includes the properties of its parent classes.
>
> appreciate your helps ...
>