本帖最后由 FWDuo 于 2014-01-01 08:44:24 编辑

解决方案 »

  1.   

    <%@ page isELIgnored="true|false"%>
    如果设定为真,那么JSP中的表达式被当成字符串处理。比如下面这个表达式<p>${2000 % 20}</p>在isELIgnored="true"时输出为${2000 % 20},而isELIgnored="false"时输出为100。Web容器默认isELIgnored="false"。
      

  2.   

    您没有看清问题
    为什么在isELIgnored="false"情况下<c:if>无法使用
      

  3.   

    您没有看清问题
    为什么在isELIgnored="false"情况下<c:if>无法使用http://docs.oracle.com/javaee/1.4/tutorial/doc/JSPIntro7.html
      

  4.   

    您没有看清问题
    为什么在isELIgnored="false"情况下<c:if>无法使用http://docs.oracle.com/javaee/1.4/tutorial/doc/JSPIntro7.html可是为什么在设置为false的时候只有<c:if>不行<c:out><c:set><c:choose><c:foreach>都是可以的
    <%@taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="true" %>
    <html>
    <head>
        <title></title>
    </head>
    <body>
        <c:set var="age" value="20" scope="request"/>
        <c:if test="${age<18}">
            abc
        </c:if>