aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes HFSJ Final Mock Question 54 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "HFSJ Final Mock Question 54" Watch "HFSJ Final Mock Question 54" New topic
Author

HFSJ Final Mock Question 54

Grace Yang
Ranch Hand

Joined: Apr 01, 2007
Posts: 58
54. tag library descriptor located at /mywebapp/WEB-INF/tlds/mytags.tld, which would be correct taglib direct? Asssume mywebapp is the web app root and that there are no <taglib> tags in the DD
a. <%@ taglib uri=�/mytags.tlds� prefix=�my� %>
b. <%@ taglib uri =�/tlds/mytags.tld� prefix=�my� %>
c. <%@ taglib uri =�/WEB-INF/tlds/mytags.tld� prefix=�my� %>
d. <%@ taglib uri =�/appwebapp/WEB-INF/tlds/mytags.tld� prefix=�my� %>
e....
The anwser is C.

I've done quite a bit of codes on the custom tags excercise. As long as the uri="XXXX" in my JSP file matches with <uri>XXXX</uri> in tag library descriptor, it works. So I think option a, b, c, d should be all valid.

Please correct me if I am wrong.

thanks
Renu Radhika
Ranch Hand

Joined: Oct 21, 2005
Posts: 243
But for tha you are not given the tld.So you have to assume that there is no uri in tld in which case jsp takes the uri in directive as the actual location of tld
Tiffiny Yang
Ranch Hand

Joined: Mar 29, 2006
Posts: 124
Renu :

Are you saying that when uri is not given uri in the tld, and there is no <taglib> in web.xml, then it must be specify full file location in jsp file like this :
<%@ taglib uri =�/WEB-INF/tlds/mytags.tld� prefix=�my� %>

Besides: I do not see the implication of the saying that there is no given url in the tld, it's only clearly stated that no <taglib> in web.xml.

Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HFSJ Final Mock Question 54
 
Similar Threads
HFSJ final mock exam quetion 54 - taglib and uri
Doubt on HFSJ Final Mock Exam
Final mock exam question 54
Exam question errata? help please
URI question