您的位置:首页 > 其它

EL表达式中获取list长度

2016-06-16 23:37 330 查看
在jsp页面中不能通过${list.size}取列表长度,而是
<%@ taglib uri="<a target=_blank target="_blank" rel="nofollow" href="http://java.sun.com/jsp/jstl/core" style="color: rgb(51, 102, 153); text-decoration: none;">http://java.sun.com/jsp/jstl/core</a>" prefix="c"%>
<%@ taglib prefix="fn" uri="<a target=_blank target="_blank" rel="nofollow" href="http://java.sun.com/jsp/jstl/functions" style="color: rgb(51, 102, 153); text-decoration: none;">http://java.sun.com/jsp/jstl/functions</a>"%>

list的长度是:${fn:length(list)}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: