The Java EE 5 Tutorial

tag-file TLD Element

A tag file is declared in the TLD using a tag-file element. Its subelements are listed in Table 8–8.

Table 8–8 tag-file Subelements

Element 

Description 

description

(optional) A description of the tag. 

display-name

(optional) Name intended to be displayed by tools. 

icon

(optional) Icon that can be used by tools. 

name

The unique tag name. 

path

Where to find the tag file implementing this tag, relative to the root of the web application or the root of the JAR file for a tag library packaged in a JAR. This must begin with /WEB-INF/tags/ if the tag file resides in the WAR, or /META-INF/tags/ if the tag file resides in a JAR.

example

(optional) Informal description of an example use of the tag. 

tag-extension

(optional) Extensions that provide extra information about the tag for tools.