This week's book giveaway is in the Features new in Java 9 forum.
We're giving away four copies of Java 9 Revealed and have Kishori Sharan on-line!
See this thread for details.
Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

c:url tag example in HFSJ  RSS feed

 
Wim Bervoets
Greenhorn
Posts: 4
Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I tried the example on page 456 of the HFSJ book.


But instead of displaying the URL, I got following error:


So.. according to this message, expressions are not allowed in the value attribute. Is this an incorrect example in the book?

tia,
Wim.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are using an old taglib uri. Please check this FAQ, and change your taglib directive to use JSTL1.1.
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Specifically, add /jsp in the middle of the taglib's uri attribute, right in front of /jstl
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!