Would specifying an array of LazyDynaMap in the struts-config.xml do what
you want?

<form-bean type="org.apache.commons.beanutils.LazyDynaMap">
     <form-property name="xyz"
type="org.apache.commons.beanutils.LazyDynaMap[]"/>
</form-bean>

Niall

----- Original Message ----- 
From: "Vic" <[EMAIL PROTECTED]>
To: <user@struts.apache.org>
Sent: Sunday, February 13, 2005 12:28 AM
Subject: ot: LazyDynaMap


> This looks very nice! I plan to use it w/ JDNC.
>
> It be nice to have a DynaList. It would be an indexed ArrayList of
> ListDynaMaps.
>
> So from iBatis I can return an ArrayList of Maps as DTO and .... just
> map it.
> .V
>
> Niall Pemberton wrote:
>
> >You could use a LazyDynaMap to do this (with Struts 1.2.4). LazyDynaMap
is a
> >"wrapper" for a Map. Because its not an ActionForm Struts will wrap it in
a
> >BeanValidatorForm, which you can use with Validator.
> >
> >Just specify it in the struts-config.xml for your form.
> >
> ><form-bean name="mapForm"
type="org.apache.commons.beanutils.LazyDynaMap"/>
> >
> >In your action you can get the actual Map in the following way...
> >
> >    LazyDynaMap dynaMap = ((BeanValidatorForm)form).getInstance();
> >    Map myMap = dynaMap.getMap();



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to