Tommy Pham wrote:
arrays {1,2,3,4,5}

 1   2
 3   4
 5

What about
<tr>
  <s:iterator status="stat" value="{1,2,3,4,5}" >
    <td><s:property value="#stat.index" /></td>
    <s:if test="%{#stat.index %2 == 0}">
      </tr><tr>
    </s:if>
  </s:iterator>
</tr>

That s:if should also make sure you're not on the last iteration, otherwise you'll end up with an empty row.

-Dale

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to