jsp回填下拉列表框有关问题
jsp回填下拉列表框问题!

其他都可以回填
就是下拉列表框每次都是 请选择 无法回填
------解决方案--------------------
<select name="clientType" id="select">
<option value="">-请选择-</option>
<option <c:if test="${models.clientType} eq '0'">selected</c:if> value="0">托运客户</option>
<option <c:if test="${models.clientType} eq '1'">selected</c:if> value="1">收货客户</option>
</select>
试试呢
------解决方案--------------------
试一试、我经常这样写的
<select name="clientType" id="select" >
<option value="">-请选择-</option>
<option <c:if test="${models.clientType}=='0'">selected='selected'</c:if> value="0">托运客户</option>
<option <c:if test="${models.clientType}==1">selected='selected'</c:if> value="1">收货客户</option>
</select></td>
其他都可以回填
就是下拉列表框每次都是 请选择 无法回填
jsp
select
------解决方案--------------------
<select name="clientType" id="select">
<option value="">-请选择-</option>
<option <c:if test="${models.clientType} eq '0'">selected</c:if> value="0">托运客户</option>
<option <c:if test="${models.clientType} eq '1'">selected</c:if> value="1">收货客户</option>
</select>
试试呢
------解决方案--------------------
<select name="clientType" id="select">
<option value="">-请选择-</option>
<option ${models.clientType == '0' ? "selected='selected'" : ""} value="0">托运客户</option>
<option ${models.clientType == '1' ? "selected='selected'" : ""} value="1">收货客户</option>
</select>
试一试、我经常这样写的