Search code examples
jstlel

How do I check two or more conditions in one <c:if>?


How do I check two conditions in one <c:if>? I tried this, but it raises an error:

<c:if test="${ISAJAX == 0} && ${ISDATE == 0}"> 

Solution

  • This look like a duplicate of JSTL conditional check.

    The error is having the && outside the expression. Instead use

    <c:if test="${ISAJAX == 0 && ISDATE == 0}">