You have built a collection of custom tags for your web application.
The TLD file is located in the file: /WEB-INF/myTags.xml.
You refer to these tags in your JSPs using the symbolic name: myTags.
Which deployment descriptor element must you use to make this link between the
symbolic name and the TLD file name?
A. <taglib>
<name>myTags</name>
<location>/WEB-INF/myTags.xml</location>
</taglib>
B. <tags>
<name>myTags</name>
<location>/WEB-INF/myTags.xml</location>
</tags>
C. <tags>
<tags-uri>myTags</taglib-uri>
<tags-location>/WEB-INF/myTags.xml</tags-location>
</tags>
D. <taglib>
<taglib-uri>myTags</taglib-uri>
<taglib-location>/WEB-INF/myTags.xml</taglib-location>
</taglib>
Answer: D
相關說明:
TLD
http://docs.oracle.com/javaee/1.4/tutorial/doc/JSPTags6.html
http://www.ibm.com/developerworks/cn/java/j-jsp07233/
http://java.sun.com/products/jsp/tutorial/TagLibrariesTOC.html
http://doc.openhome.cc/
公告版位
- Aug 23 Thu 2012 22:57
[JAVA_OCWCD]OCWCD考古題解說 Exam interpretation- Q3
close
文章標籤
全站熱搜
留言列表
發表留言