<c:foreach var="colorsList" varstatus="status" items="${colorList}"><c:foreach var="colorsList" items="${colorList}" varstatus="status">
xml 代码
- <c:forEach var="colorsList" items="${colorList}" varStatus="status">
- <c:if test="${((status.count-1))%4==0}">
- <tr>
- </c:if>
- <td width="15%"><input type="text" name="colorName" id="colorName"
- value="<c:out value="${colorsList.name}"/>" onclick="checkColor(this.value);"
- readonly="true" onMouseOver="this.style.background='#ffff00'" onmouseout="this.style.background='white'">
- </td>
- <c:if test="${status.count%4==0}">
- </tr>
- </c:if>
- </c:forEach>
<c:if test="${status.count%4==0}">
</c:if>
<c:if test="${((status.count-1))%4==0}">
</c:if>
<c:if test="${status.count%4==0}">
</c:if>