日期:2014-05-17  浏览次数:20618 次

前端select标签问题
跳转到修改页面的时候如何将值传递给select框啊
就是如何做到跳转过去后select框的修改前的值是selected的
select 前端界面

------解决方案--------------------
类似吧。
	<select  id="xtatus">
<c:forEach items="${xxx}" var="item">
<c:choose>
<c:when test="${item.option_value eq xxx}">
<option value="${item.option_value }" selected="selected">${item.option_text}</option>
</c:when>
<c:otherwise>
<option value="${item.option_value }">${item.option_text}</option>
</c:otherwise>
</c:choose>
</c:forEach>
</select>