This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 60738

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] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60738

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
Similar Threads
JSP 2.0 Tag Files - is it possible to pass dynamic-attributes from one to another?
Localize select box
Accessing Property(array object) in a Bean using EL
JSP - Tag Files used recursivily throws exception !
How to pass attribute to a custom tag only if it evaluates to a non null value