Creating TLD Files

See Also

A tag library consists of:

The following steps show how to create a TLD in a web module. After you create the TLD, use the Tag Library Customizer to define the tag library's properties.

tip  If you create a tag library outside of a web module, follow the instructions in Deploying Tag Libraries to execute JSP files within a web module that uses these tags.

To create a TLD in a web module:

  1. In the Filesystems window, right-click the web module's document base (root directory) node.
  2. From the contextual menu, choose New and choose All Templates.
  3. Expand JSPs & Servlets, select Tag Library, and click Next.
  4. Type the name of the TLD and click finish. You do not need to add the .tld extension.

The IDE creates a TLD file that conforms to JSP 1.2 specifications. The IDE supports 1.1 and 1.2 TLD files. That is, you can edit them using the customizer and tag handler dialog boxes. All other versions of TLD files are treated as XML files. You can edit these other versions in the Source Editor.

For more information about creating and using tag libraries, see the JavaServer Pages Specification available at http://java.sun.com/products/jsp/download.html.

See Also
About Tag Libraries
Editing Tag Libraries
Creating and Editing Tags
Deploying Tag Libraries

Legal Notices