<select name="lm" id="lm">
<option value="0">所有栏目</option>
<c:forEach items="${lmBean.allGenre}" var="genre">
<option value="${genre.lmid}" <c:if test="${genre.lmid}==${lm_id}">selected</c:if>>${genre.lmtitle}</option>
</c:forEach>
</select>我输出了${genre.lmid}和${lm_id}"
明明 有相等的 但是却不被选中
好奇怪啊
<option value="0">所有栏目</option>
<c:forEach items="${lmBean.allGenre}" var="genre">
<option value="${genre.lmid}" <c:if test="${genre.lmid}==${lm_id}">selected</c:if>>${genre.lmtitle}</option>
</c:forEach>
</select>我输出了${genre.lmid}和${lm_id}"
明明 有相等的 但是却不被选中
好奇怪啊
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货