如:<select name="type">
<option value="1" <c:if test="${EInfo.type == '1' }">selected</c:if> >厂商</option>
<option value="2" <c:if test="${EInfo.type == '2' }">selected</c:if> >代理商</option>
<option value="3" <c:if test="${EInfo.type == '3' }">selected</c:if> >经销商</option>
</select>EInfo是一个对象,type的类型是char
type的值是'3'
用<c:out value="${EInfo.type}" />是可以正确输出3的