forEach 每行两条数据

<c:forEachitems="${listBasetypeProperties}"var="btp"varStatus="varstatus">
<c:choose><c:whentest="${varstatus.index%2==0}">
<ulstyle="clear:both;">
<liclass="tit_in">${btp.name}<inputtype="hidden"name="propertyId"value="${btp.id}"></li>
<liclass="tit_incent"><inputtype="text"name="propertyValue"class="input"/></li>
<liclass="tit_in"style="width:100px;">是否在三维中显示</li>
<liclass="tit_incent"><selectname="isShow"><optionvalue="0">否</option><optionvalue="1">是</option></select></li>
</ul>
</c:when>
<c:otherwise>
<ul>
<liclass="tit_in">${btp.name}<inputtype="hidden"name="propertyId"value="${btp.id}"></li>
<liclass="tit_incent"><inputtype="text"name="propertyValue"class="input"/></li>
<liclass="tit_in"style="width:100px;">是否在三维中显示</li>
<liclass="tit_incent"><selectname="isShow"><optionvalue="0">否</option><optionvalue="1">是</option></select></li>
</ul>
</c:otherwise></c:choose>
</c:forEach>

你可能感兴趣的:(foreach,forEach每行两条数据)