jstl:
<select name="category" class="select1" id="category">
<c:forEach items="${itemCategoryList}" var="ic">
<c:set var="selectedString" value=""/>
<c:if test="${ic.id eq item.itemCategory.id}">
<c:set var="selectedString" value="selected"/>
</c:if>
<option value="${ic.id }" ${selectedString }>${ic.name }</option>
</c:forEach>
</select>
velocity:
<td>是否总站:
<select name="isChief">
<option value="">选择全部</option>
<option value="1" #if($!isChief==1) selected="selected" #end>是</option>
<option value="0" #if($!isChief==0) selected="selected" #end>否</option>
</select>
</td>
<!--
<td>状态:
<select name="recordStatus">
<option value="">选择全部</option>
<option value="1" #if($!recordStatus==1) selected="selected" #end>启用</option>
<option value="0" #if($!recordStatus==0) selected="selected" #end>禁用</option>
</select>
</td>
-->