Hey Learner, I am sharing you TLD file code tag information. TLD is a contains all the information about of custom tags.
If you are create custom tag in jsp then you have to create tld file where you have to provide information of tags. if you are creating tld file then you have to add starting code schema with taglib tag.
TLD File code – Tag library Descriptor
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
<taglib>
<tlib-version>1.0</tlib-version>
<jsp-version>2.0</jsp-version>
<short-name>testing</short-name>
<uri>http://www.tomcat-demo.com/testing</uri>
<description>This is a demonstration tag library</description>
<tag>
<name>greet</name>
<tag-class>tag.Welcome</tag-class>
</tag>
<tag>
<name>demo</name>
<tag-class>tag.Demo</tag-class>
</tag>
</taglib>
Read Also: