Quoting "Craig R. McClanahan" <[EMAIL PROTECTED]>:
> On Wed, 5 Feb 2003, Kris Schneider wrote:
>
> > Date: Wed, 5 Feb 2003 12:19:22 -0500
> > From: Kris Schneider <[EMAIL PROTECTED]>
> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > Subject: RE: Dynaactionform
> >
> > Isn't this what BeanUtils.describe and ProperyUtils.describe do (but for
> > "normal" beans as well)?
> >
>
> Too true ... not enough coffee yet :-).
>
> Craig
Figured as much. Pretty amazing after the number of times you've had to give the
describe/populate and copyProperties sermons here... ;-)
> > Quoting "Craig R. McClanahan" <[EMAIL PROTECTED]>:
> >
> > >
> > >
> > > On Wed, 5 Feb 2003, Kris Schneider wrote:
> > >
> > > > Date: Wed, 5 Feb 2003 11:53:46 -0500
> > > > From: Kris Schneider <[EMAIL PROTECTED]>
> > > > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > > > To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > > > Subject: RE: Dynaactionform
> > > >
> > > > DynaActionForm has a getMap method that "Returns the Map containing
> the
> > > > property values".
> > >
> > > This solution works for DynaActionForm in particular (where the
> getMap()
> > > method was added). For general purpose extraction of name/value pairs
> > > from any DynaBean:
> > >
> > > Map map = new HashMap();
> > > DynaBean bean = ...;
> > > DynaProperty props[] = bean.getDynaClass().getDynaProperties();
> > > for (int i = 0; i < props.length; i++) {
> > > map.put(props[i].getName(), bean.get(props[i].getName());
> > > }
> > >
> > > Craig
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> >
> >
> > --
> > Kris Schneider <mailto:[EMAIL PROTECTED]>
> > D.O.Tech <http://www.dotech.com/>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
--
Kris Schneider <mailto:[EMAIL PROTECTED]>
D.O.Tech <http://www.dotech.com/>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]