Ich habe versucht zu bewerten, ob diese Array-Liste leer ist oder nicht, aber keines dieser Elemente wurde kompiliert:
<c:if test="${myObject.featuresList.size == 0 }">
<c:if test="${myObject.featuresList.length == 0 }">
<c:if test="${myObject.featuresList.size() == 0 }">
<c:if test="${myObject.featuresList.length() == 0 }">
<c:if test="${myObject.featuresList.empty}">
<c:if test="${myObject.featuresList.empty()}">
<c:if test="${myObject.featuresList.isEmpty}">
Wie kann ich auswerten, ob eine ArrayList leer ist?
leer ist ein Operator.
<c:if test="${empty myObject.featuresList}">
Es gibt auch die Funktions-Tags, die etwas flexibler sind:
<%@ taglib uri="http://Java.Sun.com/jsp/jstl/functions" prefix="fn" %>
<c:if test="${fn:length(list) > 0}">
Und hier die Tag-Dokumentation.