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的问题

posted @ 2013-07-28 16:13  SangBigYe  阅读(336)  评论(0编辑  收藏  举报