2013年7月31日星期三

easy.jsp appeared According to TLD or attribute directive in tagfile, attribute value does not accept any expressions

 

show similar

 

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

 

error

 

Workaround :

 

in the jsp file

 

add <% @ 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 design second edition of the book

 

seemingly JSTL problem

没有评论:

发表评论