Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP expression language error

 
Indravadan T Patel
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,


why i get that error "According to TLD or attribute directive in tag file, attribute value does not accept any expressions"

the coding is :

<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
You have entered :<br>
Name : <cut value="${param.fname}"/>
Basic : <cut value="${param[basic]}"/>

</body>
</html>
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are using JSTL1.0 (see this). Expressions are not allowed in the value attribute of the cut tag in JSTL1.0. Maybe you want to use 1.1 instead ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic