see this link
http://www.strutskickstart.com/IndexedPropertiesandValidation.ppt
-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]