页面上如何用EL表达式取集合的长度
使用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)}
声明:该文观点仅代表作者本人,牛骨文系教育信息发布平台,牛骨文仅提供信息存储空间服务。