jsp页面数据回显(select下拉选择框):
<select id="userFlag" name="userFlag" value="${schoolBaseInfo.userFlag}"/> <option value="">--请选择--</option> <option value="0" <c:if test="${'0' eq schoolBaseInfo.userFlag}">selected</c:if>>无效</option> <option value="1" <c:if test="${'1' eq schoolBaseInfo.userFlag}">selected</c:if>>有效</option> </select>