Creating Tag Libraries

See Also

A tag library consists of:

Warning Attempting to generate more than 200 tags might result in an out of memory exception

The following steps show how to create a tag library descriptor (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 Packaging and Deploying a Tag Library to execute JSPs within a web module that uses these tags.

To create a tag library 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.

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

See Also
Custom Tag Libraries
Customizing Tag Libraries
Customizing Tags
Packaging and Deploying a Custom Tag Library

Legal Notices