• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

yet another EL not working problem

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all,

Using:
Tomcat 5.5.20 (moving from 4.1)
JSTL 1.1
JSP 2.4

I'm getting the following error:
According to TLD or attribute directive in tag file, attribute X does not accept any expressions

Now, I've researched a lot here at the ranch, and lots of other people have had this problem, but I think I have ticked off the things they were doing wrong, and those things are in place. That is, I've included the correct JSP version in my web.xml, I'm using the jstl.jar, I've gotten rid of the TLD folder altogether (because everything shoudld be in jstl.jar), I don't have any taglib elements in my web.xml, I've made the taglib header change (i.e.<%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %> instead of <%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql" %>.

The other thing is: I have LOTS of other attributes with expressions in other jsp pages in this webapp, and they work fine. I'm only getting this error with two different pages, and I can't figure out why. (The problem lines in question involve both <c:out> and <sql:query>, if that matters.)

I also tried the simple page that Bear suggested two years ago to somebody else:

...and it works just fine.

Some ideas I have:
--Somehow Tomcat is caching my old TLD's, which of course won't work with JSTL 1.1. But I've cleared out the work directory in between tries and that doesn't help. Does Tomcat cache TLD's in some other way? If so, can I flush them?
--Actually, that's the only idea I have.

Any help would be greatly appreciated!
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

According to TLD or attribute directive in tag file, attribute X does not accept any expressions



X?
 
Jeff Pollet
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
sorry about that, I was trying to generalize it. It's actually startRow attribute in one case and value attribute in another.
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Jeff Pollet:
sorry about that, I was trying to generalize it. It's actually startRow attribute in one case and value attribute in another.



It's best not to do that, especially with error messages.

Does <c:out> work on other pages, just not this one?
 
Jeff Pollet
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Bear, I swear I posted here as a last resort, because you've always been so helpful and I had an intuition that there was something simple and stupid I was doing wrong. Sure enough, I was. Just discovered that there were more than one of the jsp pages in question, and that I had been editing the wrong one.

Sorry. Thanks for your time.
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No problem. Just glad that your problem is solved!
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic