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 <cut> 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.
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 <cut> work on other pages, just not this one?
Joined: Jul 20, 2005
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.