3 回答

TA贡献1834条经验 获得超8个赞
问题解决了,应该在<s:iterator>和</s:iterator>标签之间放入:
<s:if test="(#st.index % 4) == 0 && (#st.index != 0)">
</tr>
<tr>
</s:if>
<s:elseif test="#st.index == 0">
<tr>
</s:elseif>

TA贡献1876条经验 获得超6个赞
这样不行吗
<s:iterator value="#list" id="obj">
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</s:iterator>

TA贡献1816条经验 获得超4个赞
<s:iterator>
<s:if test="(#st.index % 4) == 0 && (#st.index != 0)">
</tr>
<tr>
</s:if>
<s:elseif test="#st.index == 0">
<tr>
</s:elseif>
</s:iterator>
添加回答
举报