select选择下拉框

时间:2023-02-02 23:06:36
<td style="width: 150px;">
<select id= "status" name="search_status" value="searchParam['status']" style="border:1px solid #dddddd;width:100%;height: 30px;padding:3px 8px;color:#999999;">
<option value="0">--请选择--</option>
<option value="1">已登记</option>
<option value="2">待揽件</option>
<option value="3">已揽件</option>
<option value="4">已发送</option>
<option value="5">已送达</option>
</select>

</td>

前台页面判断参数显示

<c:if test="${logistics.status == '1'}">
<span >已登记</span>
</c:if>
<c:if test="${logistics.status == '2'}">
<span >待揽件</span>
</c:if>

前台判断是否为空

<c:if test="${empty logistics.name}">无</c:if>

页面判断数据是否相同

<c:choose>
<c:when test="${reinfo.caseicant ne Cnfo.caslicant}">
<td >
${einfo.calicant}
<div style="color: red">${seinfo.caicant}</div>
</td>
</c:when>
<c:otherwise>
<td>
${info.cant}
</td>
</c:otherwise>
</c:choose>