牛骨文教育服务平台(让学习变的简单)
博文笔记

页面上如何用EL表达式取集合的长度

创建时间:2016-08-12 投稿人: 浏览次数:1456
使用jstl中的function
<%@ 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)}
声明:该文观点仅代表作者本人,牛骨文系教育信息发布平台,牛骨文仅提供信息存储空间服务。