You might look at the nested tag library - works pretty good for this type
of stuff.  Tutorials at http://www.keyboardmonkey.com.

HTH,

Matt

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 17, 2003 12:35 PM
To: [EMAIL PROTECTED]
Subject: nested logic:iterate


I am trying do the following:

I have an ArrayList of beans called stateFormList that I need to iterate.

Each of the beans in the stateFormList collection has a method called
getFieldValues
that will return an ArrayList of beans.  I also need to iterate this
ArrayList.

Can I accomplish this by nesting the logic:iterate tag?

I have tried this:

<logic:iterate  id="stateForm"
             name="stateFormList"
             scope="request">

        <bean:write name="stateForm" property="formName"/>

          <logic:iterate  name="stateForm"
                          property="fieldValues"
                          id="itemValue"/>

                          <bean:write name="itemValue" property
="description"/>

          </logic:iterate>

</logic:iterate>

The outer <logic:iterate> works fine.

The inner <logic:iterate> does not work.  The <bean:write> in the
inner <logic:iterate> only seems to generates output from the last bean in
the fieldValues ArrayList.

Thanks for any ideas on this.
Jack



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


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

Reply via email to