jstl - Error in EL Expression -


i trying use fn:length , c:when

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

gives me error :

contains invalid expression(s): javax.el.elexception: error parsing:     ${fn:trim(${properties.num2display})== null} 

what correct way write expression inside fn:trim?

try this:

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

Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -