Tag Library Descriptor (TLD) File

Every tag library is required to have a TLD file associated with it. The TLD file serves as a contract describing how the JSP container should interact with it along with a list of the available custom tags. The TLD file is an XML document with its own DTD file specifying its format. Each TLD file has two main sections: the header and the <taglib> root element. The header section must include the definition of the XML version and the encoding format along with the appropriate DOCTYPE statement identifying the governing DTD. Listing 18.7 is an example of a valid header section for a TLD file. The next section consists of the <taglib> root element containing the following 11 subelements listed in Table 18.1. ...

Get Borland® JBuilder™ Developer’s Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.