<s:iterator value="集合元素" id="ID號" status="範例名稱">
<s:property/><br>
</s:iterator>
<body> <table align="center" width="450" border="1"> <tr> <td align="center" colspan="5"> <h2>所有圖書資訊</h2> </td> </tr> <tr align="center"> <td><b>ID</b></td> <td><b>圖書名稱</b></td> <td><b>價格</b></td> <td><b>作者</b></td> </tr> <s:iterator value="list" var="book" status="st"> <s:if test="#st.even"> <tr align="center" bgcolor="#f0f0f0"> </s:if> <s:elseif test="#st.odd"> <tr align="center"> </s:elseif> <td> <s:property value="#book.id"/> </td> <td> <s:property value="#book.name"/> </td> <td> <s:property value="#book.price"/> </td> <td> <s:property value="#book.author"/> </td> </tr> </s:iterator> </table> </body>