Try like this

<table>
<logic:iterate id="organization" name="organizations">
        <member>
                        <tr><td>
                        <bean:write name="organization" property="title"/>
                        <logic:iterate id="item" name="organization" property="items">
                                <member>
                                        <br/>-<bean:write name="item" 
property="title"/>
                                </member>
                        </logic:iterate>

                        </td></tr>
        </member>
</logic:iterate>
</table>


From: "Chris Gastin" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: Iterating List of Lists
Date: Thu, 30 Oct 2003 21:55:53 -0600

I have List of Lists of DataObjects. I want to iterate through that List of
Lists to get access to the Data Object, where I will print the values of the
attributes on the data object. I have the outer loop working, but I don't
understand how to get the Data out of the list in the inner loop.


This is my latest attempt:

<logic:iterate id="list" name="di3List" scope="request">
            <logic:iterate id="data" collection="list">
                        <li><bean:write name="data" property="word"/> -
<bean:write name="data" property="definition"/></li>
            </logic:iterate>
</logic:iterate>


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


_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963



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



Reply via email to