• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Exam question errata? help please

Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is about HFSJ:

Question 54 (version SCWCD 1.4):

Given a tag library descriptor located at /mywebapp/WEB-INF/tlds/mytags.tld which would be the correct taglib directive? Assume mywebapp is the web application root and that there ara no <taglib> tags in the deployment descriptor.

A. <%@ taglib uri="/mytags.tld" prefix="my" %>
B. <%@ taglib uri="/tlds/mytags.tld" prefix="my" %>
C. <%@ taglib uri="/WEB-INF/tlds/mytags.tld" prefix="my" %>
D. <%@ taglib uri="/mywebapp/WEB-INF/tlds/mytags.tld" prefix="my" %>
E. /mywebapp/WEB-INF/tlds/mytags.tld is NOT a valid location for a tag library descriptor, so none of these will work

The correct answer is C because, in the abscence of a <taglib> element in the DD, the URI must be a full path relative to the application root.


I think it is false. If the tld, as it is located on /WEB-INF/tlds/, has a <uri>MY_URI_NAME</uri>, then, the correct answer should be:

<%@ taglib uri="MY_URI_NAME" prefix="my" %>

The uri name determines the uri attribute of the taglib determine.

Am i confused?
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Better than an Eratta, a post by the exam author:


Essentially what you post is entirely correct, but not in the "spirit" of the question.

rubbery bacon. rubbery tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic