在使用jstl时,<c:if test="${requestScope.queryAll}"></c:if>时会出现如下异常,提示test中不能包含任何的表达式,
请哪位大哥指点下,怎么样解决!
严重: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: /result.jsp(15,4) According to TLD or attribute directive in tag file, attribute test does not accept any expressions

解决方案 »

  1.   

    <c:if test="${requestScope.queryAll}"> </c:if>  if是用来做判断的啊, 楼主掉了个比较运算符号吧
      

  2.   

    例如
    <c:if test="${requestScope.queryAll==null}"> </c:if>  
      

  3.   

    <c:if test="${requestScope.queryAll}">  
    是用来做比较的
      

  4.   

     <s:if test="null==requestScope.queryAll||requestScope.queryAll.isEmpty()">