上篇的select 里嵌套if else想改成<c:if>标签没成功,后来想想,改成用<c:choose>就可以了,代码如下
<select name='education' style='width:150px'>
<c:choose>
<c:when test="${e.education eq '专科'}">
<option value='专科' selected='selected'>专科</option>
</c:when>
<c:otherwise>
<option value='专科'>专科</option>
</c:otherwise>
</c:choose>
<c:choose>
<c:when test="${e.education eq '本科'}">
<option value='本科' selected='selected'>本科</option>
</c:when>
<c:otherwise>
<option value='本科'>本科</option>
</c:otherwise>
</c:choose>
<c:choose>
<c:when test="${e.education eq '研究生'}">
<option value='研究生' selected='selected'>研究生</option>
</c:when>
<c:otherwise>
<option value='研究生'>研究生</option>
</c:otherwise>
</c:choose>
<c:choose>
<c:when test="${e.education eq '博士'}">
<option value='博士' selected='selected'>博士</option>
</c:when>
<c:otherwise>
<option value='博士'>博士</option>
</c:otherwise>
</c:choose>
<c:choose>
<c:when test="${e.education eq '其它'}">
<option value='其它' selected='selected'>其它</option>
</c:when>
<c:otherwise>
<option value='其它'>其它</option>
</c:otherwise>
</c:choose>
</select>