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}">
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}">
If you are using JSP 2.0 and above It will come with the EL support: so that you can write in plain english and use
and
withempty
operators to write your test:This look like a duplicate of JSTL conditional check.
The error is having the
&&
outside the expression. Instead useRecommendation:
when you have more than one condition with
and
andor
is better separate with()
to avoid verification problemsJust in case somebody needs to check the condition from session.Usage of
or