(1) jsp
<logic:iterate id="item" name="SearchSalesJournalForm" scope="request" property="items">
<html:multibox property="salesMode">
<bean:write name="item"/>
</html:multibox>
<c:if test="${item == 0}">无确定方式收款<br></c:if>
<c:if test="${item == 1}">现金</c:if>
<c:if test="${item == 2}">银行卡</c:if>
<c:if test="${item == 3}">转账</c:if>
</logic:iterate>
<2> from
private Integer[] salesMode;
private String[] items = {"0","1","2","3"};
本文展示了如何使用JSP中的logic:iterate标签遍历请求范围内的集合,并结合EL表达式显示不同的支付方式,包括无确定方式收款、现金、银行卡及转账。
335

被折叠的 条评论
为什么被折叠?



