I think this question is misleading.
The question:
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 are no <taglib> tags in the deployment descriptor.
Possible answers:
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" %>
Correct answer according to the book is C.
But I think it can be any of them because page 475 of HFSJ says the container automatically builds a map between TLD files and <uri> names, so that when a
JSP invokes a tag, the Container knows exactly where to find the TLD that describes the tag. So in the new (JSP2.0) no <taglib> entry in the DD. In my opinion the question should state that it is refering to the old spec before JSP 2.0. So if I right exam tomorrow and I get the same question what is the correct answer?