This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
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

Iterate a String Array of the ActionForm

 
Colin Pace
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
i need to iterate through a String array property of the ActionForm, and display the elements in textfields such that they can be changed.
1. Iterate tag
<logic:iterate id="arrayelement" name="MyForm" property="StringArray">
Are the attributes of the iterator tag correctly set?
2. How to display the array elements in textfields?
i managed to display the elements, however using the <bean:write> tag
<bean:write name="arrayelement">
how can i display them using the <html:text> tag?
3. After displaying the elements in textfields, i need to display an empty textfield to allow the user to populate new elements in the array.
By setting the property attribute the array property should be filled automatically. Correct?

thanks,
 
Christian Spiteri
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the same kind of problem and still haven't found a solution for it. I've checked most postings in this forum but no luck!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic