my dog learned polymorphism*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Exam question errata? help please Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Exam question errata? help please" Watch "Exam question errata? help please" New topic
Author

Exam question errata? help please

Ander Rodriguez
Greenhorn

Joined: Oct 30, 2008
Posts: 4
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?
Rufus Addis
Ranch Hand

Joined: Aug 21, 2008
Posts: 83
Better than an Eratta, a post by the exam author:

http://www.coderanch.com/t/171415/java-Web-Component-SCWCD/certification/final-Mock-HFSJ#000004

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

Rufus.
 
GeeCON Prague 2014
 
subject: Exam question errata? help please