Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以获得集合(列表)的大小(长度)?WITHOUTusing functions
WITHOUT
using functions
我现在能做的唯一方法是: 创建一个方法来获取我的 Java 类中列表的总大小并在我的 JSP 中使用它!
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%> ... <c:out value="${fn:length(yourCollection)}"/>