Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using Logic:iterate with an string array

 
Arulanand Dayalan
Ranch Hand
Posts: 127
  • 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