my dog learned polymorphism*
The moose likes JSP and the fly likes JSP expression language error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP expression language error" Watch "JSP expression language error" New topic
Author

JSP expression language error

Indravadan T Patel
Greenhorn

Joined: Sep 09, 2007
Posts: 29
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

Joined: Nov 24, 2005
Posts: 14687
    
  16

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 ?


[My Blog]
All roads lead to JavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP expression language error
 
Similar Threads
Problems with EL in jsp pages
cset doubt??
<jsp:doBody> tag not displaying scriptlet as template text when the body content is tagdependent
getting variable value
New to JSP