Professional Documents
Culture Documents
JSP Document
<html>
<body> Web Deployment Descriptor
<%@taglib uri="test_taglib" prefix="myTag"%> <web-app>
<myTag:showDate/> <taglib>
</body> <taglib-uri> test_taglib </taglib-uri>
</html> <taglib-location>
/WEB-INF/myown-taglib.tld
START HERE: tag used in JSP page. </taglib-location>
</taglib>
</web-app>
Tag Library Descriptor
<taglib>
<taglib-location> in
<tag>
deployment descriptor maps to
<name>showDate</name>
the real tag library descriptor file.
<tagclass>examples.ShowDateTag</tagclass>
<bodycontent>EMPTY</bodycontent>
</tag> Tag Handler Class
</taglib> 1000001000000010101010
0000101010100000010010
Finally: 1000011111111000000000
<tag-class> in the TLD maps to 1000001000000010101010
a tag handler class. 0000101010100000010010
Custom Tags 1000011111111000000000 8/14
Custom Tag Example
Demo\CusTags
Q&A
Custom Tags 14/14