You list elements which you are used with the iterator tag might contain Object[]
. It doesn't clear what type is myList
or you are using DAO for your action bean that is worse. Struts can display those objects using OGNL notation but you will not be able to populate that list back if you will try to submit values. To display values of Object[]
you just need to access them by the column index.
<table>
<thead>
<tr>
<th>Name:</th>
<th>Description:</th>
<th>Description:</th>
</tr>
</thead>
<tbody>
<s:iterator value="myList" var="unElem">
<tr>
<td><s:property value="%{#unElem[0]}"/></td>
<td><s:property value="%{#unElem[1]}"/></td>
<td><s:property value="%{#unElem[2]}"/></td>
</tr>
</s:iterator>
</tbody>
</table>