• Post Reply Bookmark Topic Watch Topic
  • New Topic

According to TLD or attribute directive in tag file, attribute value does not accept any expressions  RSS feed

 
Bai Shen
Ranch Hand
Posts: 323
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So I'm trying to use JSTL in my code, but I can't seem to get the various examples I've seen around the net to work.

I downloaded the jar from http://download.java.net/maven/1/jstl/jars/jstl-1.2.jar and added it to my lib dir under WEB-INF. However, whenever I try any examples such as the following, I get the titled error.





It seems to not like the ${sessionScope.variableName} in the middle. If I replace that with plain text, it outputs the text. All of the JSTL tags seem to throw the same error. I assume I'm missing something obvious, but I'm not sure what that would be.
 
Bai Shen
Ranch Hand
Posts: 323
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Doh! Found it.

Should have the following



instead of


 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Right. This is a common issue. By using the older URI, you were using an older version of the JSTL that's only compatible with older versions of JSP.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!