To do this with struts2, you need an iterator:
<s:iterator value="collection"> Describe object </s:iterator>
But I suggest using displaytag: http://www.displaytag.org/1.2/ Only 1 line describes the entire bean, and you can also sort and export. Here is a usage example:
<display:table name="collection" />
and it generates a table, thead and tbody.
Balda source share