2017-06-01 3 views
0

Wie verkette ich Multiple-Länge-Prüfungen?Überprüfen Sie mehrere Listengrößen in JSTL

habe ich versucht, diese Möglichkeiten zu keinem Effekt:

<c:if test="${fn:length(app.applicationAdminComments) le 0 or fn:length(app.applicationChoComments) le 0 }"> 

und

<c:if test="${(fn:length(app.applicationAdminComments) le 0) || (fn:length(app.applicationChoComments) le 0)}"> 

aber weder funktioniert.

+0

Fügen Sie hinzu: '<% @ taglib prefix =" fn "uri =" http://java.sun.com/jsp/jstl/functions "%>'? –

+0

Habe es hinzugefügt :( – Blawless

Antwort

1

Wenn Sie nicht einen Fehler, die möglichen Ursachen sind:

  • app.applicationAdminComments null ist
  • app.applicationChoComments null ist
  • Länge von app.applicationAdminComments 0
  • Länge von app.applicationChoComments ist 0