jQuery in Action, 3rd edition
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

JSP expression language error

Indravadan T Patel

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" %>

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

Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

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
It's not a secret anymore!