Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Iterating List With logic:iterate

 
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Just wondering whether there is any way to
iterate and display the value of String inside
a List object with logic:iterate.
I can't seemed to get it working, unless the String is inside another object. Or unless I've
some scriptlets which I would want to avoid.
<logic:iterate name="Form"
property="fields" id="row">
<bean:write .../> // What to do here?
</logic:iterate>
If the List contain another object, what I've is something like:
<logic:iterate name="Form"
property="objectList" id="row">
<bean efine id="value" name="row"
property="value"/>
<bean:write name="row"
property="getValue"/>
</logic:iterate>

Thanks in advance.
 
If you believe you can tell me what to think, I believe I can tell you where to go. Go read this tiny ad!
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic