• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSP for JSF Won't Compile

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm trying to work my way through Geary/Horstmann's "Core Java Server Faces" and am having a problem with the library application in chapter 8. BTW, he has a new edition coming out in a couple of months so maybe this problem is fixed there. Also they admit to a "sleigh-of-hand" in this application and this may be it.

library/bookMenu.jsp is the following two line program:

<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<c:import url="${book.directory}/${chapter}.html"/>

The error message is: "According to TLD or attribute directive in tag file, attribute url does not accept any expresssions".

Any suggestions? Is this something that changed in the latest release?
 
Niels Laughlin
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I solved my own problem, it was just a version mismatch. All I had to do was add /jsp to the taglib, to wit:
<%@tablib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
Hope I didn't waste anybody's time. Thanks.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic