You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by May <ma...@hotmail.com> on 2001/09/25 10:22:01 UTC
retrieve data from Collection
My Collection contains Item object.
Item class consists of 2 values,
Integer itemNo
String itemName
I use the logic:iterate tag to retrieve data from
my collection.
It goes like below...
<logic:iterate id="element" name="ItemCollection" type="struts_4.Item">
<br><bean:write name="element" />
</logic:iterate>
This way, I can retrieve Item Object itself...
But what I realy want to retrieve is the itemNo and itemName
information of each Item Object in the collection.
Is there a solution to use the getters, getItemNo() getItemName()
in the Item class...
Thank you in advance.
May