File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes yet another EL not working problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "yet another EL not working problem" Watch "yet another EL not working problem" New topic
Author

yet another EL not working problem

Jeff Pollet
Ranch Hand

Joined: Jul 20, 2005
Posts: 49
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 <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.

Any help would be greatly appreciated!


newbie, please be gentle.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61201
    
  66

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


X?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Jeff Pollet
Ranch Hand

Joined: Jul 20, 2005
Posts: 49
sorry about that, I was trying to generalize it. It's actually startRow attribute in one case and value attribute in another.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61201
    
  66

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?
Jeff Pollet
Ranch Hand

Joined: Jul 20, 2005
Posts: 49
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
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61201
    
  66

No problem. Just glad that your problem is solved!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: yet another EL not working problem