Evaluate if list is empty JSTL

后端 未结 2 627
攒了一身酷
攒了一身酷 2020-12-07 12:13

I\'ve been trying to evaluate if this array list is empty or not but none of these have even compiled:



        
2条回答
  •  情深已故
    2020-12-07 12:41

    There's also the function tags, a bit more flexible:

    <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
    
    

    And here's the tag documentation.

提交回复
热议问题