You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by David Waddell <Da...@citria.com> on 2001/03/02 12:56:25 UTC

RE: Nested Iterate tags - correction

typo,bars should be bar <struts:iterate id="bars" name="foo"
property="bars">
							     ^
-----Original Message-----
From: David Waddell 
Sent: 02 March 2001 09:54
To: 'struts-user@jakarta.apache.org'
Subject: RE: Nested Iterate tags


given ArrayList stored  as 'foos' of  foo objects
  foo {
	ArrayList getBars() {...}
   }

  with foo.getBars() returning arraylist of bar objects 
  bar {
	String getSomeProperty(){..}
  }

  you can use

   <struts:iterate id="foo" name"foos">
     <struts:iterate id="bars" name="foo" property="bars">
       <struts:property name="bar" property="someProperty">
     </struts:iterate>
   </struts:iterate>



-----Original Message-----
From: Chalmers, Douglas [mailto:DouglasC@Petrotechnics.com]
Sent: 02 March 2001 09:36
To: Struts Mailing List
Subject: Nested Iterate tags


Has anyone out there used nested iterate tags to display the contents of
a collection, and to display contents of a collection within that
collection, returned in the 1st collection class by a get method. Both
are ArrayLists.

How should we refer to the inner collection? Can it be done? 

Doug Chalmers
Software Development
Petrotechnics Ltd
Exploration House
Exploration Drive
Aberdeen
707303 (Ext 14)
__________________________________________________________________

If you are not the addressee of this confidential e-mail and any 
attachments, please delete it and inform the sender; unauthorised 
redistribution or publication is prohibited. 
Views expressed are those of the author and do not necessarily 
represent those of Citria Limited.
__________________________________________________________________
__________________________________________________________________

If you are not the addressee of this confidential e-mail and any 
attachments, please delete it and inform the sender; unauthorised 
redistribution or publication is prohibited. 
Views expressed are those of the author and do not necessarily 
represent those of Citria Limited.
__________________________________________________________________