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/

文章標籤
全站熱搜
創作者介紹
創作者 PG Levin Li 的頭像
PG Levin Li

程式開發學習之路

PG Levin Li 發表在 痞客邦 留言(0) 人氣(11)