<logic:iterate id="document" name="formName" property="documents"> <logic:iterate id="lv" name="document" property="labelValueBeans"> <bean:write name="lv" property="label"/> <bean:write name="lv" property="value"/> </logic:iterate> </logic:iterate>
You should probably use JSTL for this. <c:forEach var="document" items="${formName.documents}"> <c:forEach var="lv" items="${document.lableValueBeans}"> <c:out value="${lv.label}"/> <c:out value="${lv.value}"/> </c:forEach> </c:forEach> > -----Original Message----- > From: gentyjp [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 18, 2003 12:16 PM > To: [EMAIL PROTECTED] > Subject: logic:iterate inside a logic:iterate ?? > > > > Hi > > I'am a Struts newbie, sorry if it is a "classic" question. > > My question is about logic:iterate > > I have a vector of documents. > In my application a document is a vector of LabelValueBean. I wish to > write both the label and the value. > > I wish to write all my documents so I iterate through my vector > of documents. > But after that how can I iterate through my vector of LabelValueBean ??? > > Basically here's what I want to do : > > for_each_document > { > for_each_LabelValueBean_in_the_current_document > { > write LabelValueBean.Label; > write LabelValueBean.Value; > } > } > > thanks for you help > > > Genty Jean-Paul > > > --------------------------------------------------------------------- > 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]