取的循环计数器i<c:if test=${i%你的列数==列数-1}>
  </tr>
  <tr>
</c:if>

解决方案 »

  1.   

    一个例子                           <table><tr>
                                <c:forEach var="image" items="${imageList}" varStatus="st">
                                    <td>
                                        <!--显示image图片-->
                                    </td>
                                    ${st.count%6==0?"</tr><tr>":""}   <!--6列换行-->     
                                </c:forEach>
                               </tr></tabel>