This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using Logic:iterate with an string array

 
Arulanand Dayalan
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I need to iterate over an string array. I have my setter and getter methods declared in FormBean.

In form bean
private String[] first;

//Corresponding setter and getter methods.

In the action i populate the Formbean

I need to iterate this string array and show the result.

Can any one help how to iterate over an string array.

Thanks in advance

Regards,
Arul.
 
Dom Lassy
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<logic:iterate name="FormBean" property="first" id="currentElement">
<bean:write name="currentElement"/>
</logic:iterate>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic