• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

logic:iterate tag in double

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have a collection that have another collection. exemple : a collection of name, where each name, have a collection of number.
And i wanna display the two collection with the tag <logic:iterate>
EXEMPLE: <logic:iterate id="people" type="com.application.people" name="peoplelist">
<logic:iterate id="numberpeople" type="com.application.number" name="numberpeoplelist">
<!-- display the differents elements -->
-->
</logic:iterate>
</logic:iterate>
thanks a lot.
 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
well, teoreticly it should work this way....

<logic:iterate id="people" name="peoplelist">
<logic:iterate id="numberpeople" name="people" property="numberpeoplelist">
<bean:write name="numberpeople"><br/>
</logic:iterate>
</logic:iterate>

but i came across a problem that sometimes i get an exception that "could not find bean 'numberpeople' at any scope (well the names of beans are taken from this example, the exception is in my onw project with diferent classes)

i suspect that it does not create this temporary bean (that is used to store actual object on which the iteration is at the moment) if there is only one element in the collection..
well i propably make another topic for my problem
 
reply
    Bookmark Topic Watch Topic
  • New Topic