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

Selva Kumar K.P. picture Selva Kumar K.P. · Dec 2, 2011 · Viewed 225.7k times · Source

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}"> 

Answer

olly_uk picture olly_uk · Dec 2, 2011

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}">