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!