Jstl EL表达式中的错误

Jstl EL表达式中的错误,jstl,el,Jstl,El,我试图同时使用fn:length和c:when <c:when test="${fn:trim(${properties.num2display})== null}"> <c:set var="counter" value="3"/> condition 1 </c:when> 在fn:trim中写入表达式的正确方法是什么?尝试以下方法: <c:when test="${not empty fn:trim(properties.num

我试图同时使用
fn:length
c:when

<c:when test="${fn:trim(${properties.num2display})== null}">
    <c:set var="counter" value="3"/>
    condition 1 
</c:when>
fn:trim
中写入表达式的正确方法是什么?

尝试以下方法:

<c:when test="${not empty fn:trim(properties.num2display)}">
    <c:set var="counter" value="3"/>
    condition 1 
</c:when>

条件1

我想您应该使用
${empty fn:trim(${properties.num2display})}
(尽管未测试)。
<c:when test="${not empty fn:trim(properties.num2display)}">
    <c:set var="counter" value="3"/>
    condition 1 
</c:when>