File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Expressions problem

 
Peter Braun
Ranch Hand
Posts: 57
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

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,
Peter
[ December 16, 2005: Message edited by: Peter Braun ]
 
Sushma Sharma
Ranch Hand
Posts: 139
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

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
Marshal
Pie
Posts: 64188
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64188
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic