67,513
社区成员
发帖
与我相关
我的任务
分享
<table width="60%">
<tr>
<td width="40%">标题</td>
<td width="20%">发帖人</td>
<td width="20%">回复数</td>
<td width="20%">最后更新</td>
</tr>
<s:iterator value="posts" id="post">
<tr>
<td><s:property value="#post.p_title" /></td>
<td><s:property value="#post.postUser.username" /></td>
<td><s:property value="#post.replyNum" /></td>
<td><s:property value="#post.lastUpdateUser.username" /></td>
</tr>
</s:iterator>
</table>
<table width="60%">
<tr>
<td width="40%">标题</td>
<td width="20%">发帖人</td>
<td width="20%">回复数</td>
<td width="20%">最后更新</td>
</tr>
<s:iterator value="posts">
<tr>
<td><s:property value="p_title" /></td>
<td><s:property value="postUser.username" /></td>
<td><s:property value="replyNum" /></td>
<td><s:property value="lastUpdateUser.username" /></td>
</tr>
</s:iterator>
</table>
<table border="1">
<tr>
<th>编号</th>
<th>书名</th>
<th>作者</th>
</tr>
<s:iterator value="#{'Spring 2.0':'李刚','Java':'张三','j2ee study':'李四'}" id="name" status="st">
<tr <s:if test="#st.odd">style="background-color:#bbbbbb"</s:if> >
<td><s:property value="#st.count"/></td>
<td><s:property value="key"/></td>
<td><s:property value="value"/></td>
</tr>
</s:iterator>
</table>