• 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

how to loop through an array list of objects

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
an object X has an array list xyzList.

getXyzList() returns an array of objects Test

public Test[] getXyzList() {
}

The object Test() contains variables name and setting.

how do I loop through the xyzList to display values of name and setting

I tried the below ..seems like thats not the way to do. any help is appreciated.

Thank you ..

<s:iterator id="xyzLst" value="X.xyzList" status="alertSetting">

<tr>
<td><label>Setting Name:</label></td>
<td> <s:textfield value="%{#xyzLst[%{#alertSetting.index}]}"></s:textfield> </td>

</tr>
</s:iterator>
 
M Kethi
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Resolved !!
 
I suggest huckleberry pie. But the only thing on the gluten free menu is 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