jstl下拉列表遍歷集合


關鍵字:forEach,items,var
<select id="oriLoanerIdType" class="form-control need" name="oriLoanerIdType">
<option value="">請選擇</option>
<c:forEach items="${IDtypeList}" var="IDtype">
<option value="${IDtype.configValue}"
<c:if test="${sellHouse.oriLoanerIdType eq IDtype.configValue}">selected</c:if>>${IDtype.ext1}</option>
</c:forEach>
</select>


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM