easy.jsp出现According to TLD or attribute directive in tag file, attribute value does not accept any expressions

显示类似

HTTP Status 500 - /ora/ch5/easy.jsp (line: 13, column: 16) According to TLD or attribute directive in tag file, attribute value does not accept any expressions

错误

解决方法:

在jsp文件中

添加<%@ page isELIgnored="true"%>

<%@ page contentType="text/html" %>
<%@ page isELIgnored="true"%>
<%@ taglib  prefix="c" uri="http://java.sun.com/jstl/core"  %>
<html>
  <head>
    <title>JSP is Easy</title>
  </head>
  <body bgcolor="white">

    <h1>JSP is as easy as ...</h1>

    <%-- Calculate the sum of 1 + 2 + 3 dynamically --%>
    1 + 2 + 3 = <c:out value="${1 + 2 + 3}"/>

  </body>
</html>

  

 Jsp设计第二版书中

貌似是JSTL的问题

原文地址:https://www.cnblogs.com/SangBigYe/p/3221233.html