How to use the JSTL “if” tag without getting “..attribute test does not accept any expressions”

I have the piece of code which I am using in my code but I am getting exception from this in my JSP page.

<c:if test="${null != searchResults}" >
      <c:forEach items="${searchResults}" var="result" varStatus="status">




org.apache.jasper.JasperException: /WEB-INF/jsp/admin/admin-index.jsp(29,2)
PWC6236: According to TLD or attribute directive in tag file, attribute test does not accept any expressions

Please Check out the version details of JSTL taglib you use. It should be 1.1, so you should have (note the URI):
<%@ taglib prefix = "c" uri = "" %>
Answer is