Okay, but how do you access the contained vector inside "results" ? If
"results" is not itself a vector, you have to access the vector somehow
via sth like "property='getResultSet'" ?!?!?!?!

-----Original Message-----
From: Sterin, Ilya [mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 20. Februar 2003 02:25
To: 'Struts Users Mailing List'
Subject: RE: Nested iterate tags


Yes, it's a copy of another jsp, which works, but without the nesting.
results is a request attribute which contains the vector.

Ilya

-----Original Message-----
From: Jörg Maurer [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, February 19, 2003 8:14 PM
To: Struts Users Mailing List
Subject: RE: Nested iterate tags


Are you sure that "results" is a properly exposed bean? I guess that
"name" argument should be that of your ActionForm bean and "results"
should be the "property" argument to this logic:iterate.

-----Original Message-----
From: Sterin, Ilya [mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 20. Februar 2003 01:32
To: 'Struts Users Mailing List'
Subject: Nested iterate tags


Hi, I'm hoping someone can help me out.

I have a vector object where each element contains an object, which has
another vector element.

I need to traverse through the first one, while inside the loop, also
traversing the vector within each object.

Can someone give me a lead on how can this possibly be accomplished.

I've tried just nesting one iterate tag within the other and use the
first one's item property for the second one's iteration, but I keep
getting an error that even my outter iterate is telling me that it can't
find a getter method, which exists.

<logic:iterate id="comp" name="results">
        <tr>
        <td><a href="/DisplayComponents.do?component_ID=<bean:write
name="comp" property="component_ID"/>"><bean:write
name="comp" property="component_ID"/></a></td>
        <td><bean:write name="comp" property="description"/></td>
        </tr>
        <logic:iterate id="part" name="comp" property="parts">
                <tr>
                <td><a href="/DisplayParts.do?part_ID=<bean:write
name="part" property="part_ID"/>"><bean:write name="part"
property="part_ID"/></a></td>
                <td><bean:write name="part"
property="description"/></td>
                </tr>
        </logic:iterate>
</logic:iterate>


Can someone please help or give a simple example.

Thanks.

Ilya

---------------------------------------------------------------------
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]


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

Reply via email to