On Sat, 2003-06-28 at 13:51, Dan Tran wrote:
> see this link
> http://www.strutskickstart.com/IndexedPropertiesandValidation.ppt
Thanks Dan. I looked at the presentation above, but it's not helping me
much. I probably do still need the indexed="true" to make the properties
indexed, but I still don't see how this is going to get them populated
in the correct bean and loaded back into the map? Adding indexed="true"
doesn't seem to help.
>
> -Dan
> ----- Original Message -----
> From: "Rick Reumann" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Saturday, June 28, 2003 9:35 AM
> Subject: JSTL- el - nested beans from a map used in a form?
>
>
> > Ok this has me stumped...
> >
> > the down and dirty:
> >
> > formBean has HashMap called fooMap
> >
> > fooMap has keys that bring back beans of type BarBean
> >
> > BarBean has properties someCode , someDescrip
> >
> > Now I want to iterate over this map and create the properties based on
> > the properties in BarBean and be able to update this form which will
> > then update the underlying BarBeans in the map.
> >
> > (Ignore the part that I know that's a hassle about the reset method and
> > making sure Map exist there).
> >
> >
> > <c:forEach var="beanInMap" items="${formBean.fooMap}">
> >
> > someCode: <html-el:text property="????????"/><br>
> > someDescrip: <html-el:text property="????????"/><br>
> > <br>
> >
> > </c:forEach>
> >
> >
> > the text will display fine in the form with:
> >
> > someCode: <html-el:text name=beanInMap" property="beanInMap.deptCode" />
> >
> > but when the form submits all the bean property values are null ( in the
> > reset if it matters for testing i'm just creating a few maps with empty
> > BarBeans in the map).
> >
> > I'm stumped.. any help much appreciated.
> >
> > --
> > Rick
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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]
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]