0

我正在尝试fn:lengthc:when一起使用

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

给我错误:

contains invalid expression(s): javax.el.ELException: Error Parsing:
    ${fn:trim(${properties.num2display})== null}

在里面写表达式的正确方法是什么fn:trim

4

1 回答 1

1

试试这个:

<c:when test="${not empty fn:trim(properties.num2display)}">
    <c:set var="counter" value="3"/>
    condition 1 
</c:when>
于 2013-04-05T04:24:26.163 回答