This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Expressions problem

 
Peter Braun
Ranch Hand
Posts: 57
  • 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
  • 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: 64629
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • 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: 64629
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic