jsp页面上可以在
<c:foreach>和<c:if>中使用el表达式
<c:forEach items="${breakfastList}" var="list">
<c:if test="${list.orderGoods.goods.goodsName==name and list.recordStringTime.substring(5,7)==time and temp==1}">
${list.recordPrice/list.orderGoods.goods.goodsPrice},
<c:set var="temp" value="0"></c:set>
</c:if>
</c:forEach>
来源:CSDN
作者:三梦四月
链接:https://blog.csdn.net/weixin_45501830/article/details/104533085