File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Expressions problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Expressions problem" Watch "Expressions problem" New topic

Expressions problem

Peter Braun
Ranch Hand

Joined: Feb 09, 2005
Posts: 57

I made the following JSP page:

When I try to reach this page I get an errormessage:
org.apache.jasper.JasperException: /WEB-INF/jsp/include.jsp(8,1) According to TLD or attribute directive in tag file, attribute value does not accept any expressions

If I don't use expressions it works. JSTL jar-s are included in my war file. I think I'm missing something, but don't know what.

Do you have idea?

Thanks in advance,
[ December 16, 2005: Message edited by: Peter Braun ]
Sushma Sharma
Ranch Hand

Joined: Jun 02, 2005
Posts: 139

just check if EL is enabled in your page/web application.

at the page level, check if your page directive have "ELIgnored" as false, then it should work.
at web application level, check if there is any <iselignored> tag under jsp-property-group tag and it's value is false.

by default, el is enabled, so if you haven't specifically disabled it, the jsp should evaluate an el expression.

btw, there are spaces between ( c and : ) and ( : and out ) in "<c : out". i hope you don't have spaces in your real jsp.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63858

What version of JSP are you using? This is a common error when mismatched versions of the JSTL and JSP are used.

See the JSP FAQ for more details.

[Asking smart questions] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63858

P.S. The URIs that you are using indicate JSTL 1.0. If your container is JSP 2.0, you need to be using JSTL 1.1.
I agree. Here's the link:
subject: Expressions problem
It's not a secret anymore!