EL表达式的技巧

来源:百度知道 编辑:UC知道 时间:2024/09/23 05:35:19
我想知道EL表达式的能不能这样
比如我要打印 <c:forEach var="temp" items="${requestScope.send}">
</<c:forEach >而send里面有属性stime 我只想打印 stime = 1的,怎么打印

<c:forEach var="temp" items="${requestScope.send}">
<c:if${temp.time==1}>${temp.time}</c:if>
</c:forEach >

别用c标签了。
用struts标签吧!
我只想打印 stime = 1的,
那就再程序里另外写个bean。
stime = 1可能是多个数据。如果1个数据知道是第几个也能写出来,加个下标!