![](https://iknow-base.cdn.bcebos.com/lxb/notice.png)
jsp中怎么用jstl对javabean中的list进行foreach遍历
展开全部
<select id="borrLoanFlag" name="borrLoanFlag" style="width: 150px;" class="">
<option value="">---全部---</option>
<s:iterator id="tc" value="#attr.typelist">
<s:if test="%{#tc.enabled}">
<option value='<s:property value="#tc.referenceId"/>'
<s:if test="%{#tc.referenceId == query.borrLoanFlag}">selected="selected"</s:if>><s:property
value="#tc.description" /></option>
</s:if>
</s:iterator>
</select>
<option value="">---全部---</option>
<s:iterator id="tc" value="#attr.typelist">
<s:if test="%{#tc.enabled}">
<option value='<s:property value="#tc.referenceId"/>'
<s:if test="%{#tc.referenceId == query.borrLoanFlag}">selected="selected"</s:if>><s:property
value="#tc.description" /></option>
</s:if>
</s:iterator>
</select>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询