I have an ArrayList object that contains a collection of Listing objects.
The Listing object has two methods getID, getName and is a business object.
In the ActionForm there is a variable listingData of
java.util.List type. How can I use the logic:iterate tag to traverse the ArrayList object and display the id and name of the Listing objects?
What has to be added in the logic:iterate tag below?
<table>
<logic:iterate id="listingForm" name="listingForm" property="listingData">
<tr>
<td>
// Here I want to output the value of Listing object id field
</td>
<td>
// Here I want to output the value of Listing object name field
</tr>
</logic:iterate>
</table>
Do I need a nested logic:iterate tag?
Should the ArrayList be populated with a J2SE class rather than a business object, i.e. the Listing class?