In this JavaEE JSP Tutorial, we will define the TLD (Tag Library Descriptor) which will link the JSP & Custom Tag implementation class.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
<!--Sample 04: Define the Tag Definition --> <taglib version="2.0"> <short-name>List of Books</short-name> <tlib-version>2.0</tlib-version> <tag> <name>ListBooks</name> <tag-class>tube.codingexamples.jtags.ListBookTitlesTag</tag-class> <body-content>empty</body-content> <attribute> <name>books</name> <type>java.util.ArrayList</type> <required>true</required> <rtexprvalue>true</rtexprvalue> </attribute> </tag> </taglib> |
Categories: JSP