11.1. Using the New Tag Library Descriptor Format

Tag libraries that make use of any new JSP 1.2 capabilities must use a new format for their tag library descriptor (TLD) files. However, libraries that are compatible with JSP 1.1 are allowed to use the JSP 1.1 TLD format.

TLD files in JSP 1.2 differ in the following ways from JSP 1.1 TLD files:

  • The DOCTYPE declaration has changed.

  • Several elements have been renamed.

  • New elements have been added.

Each of these changes is described in one of the following subsections. The final subsection gives a side-by-side comparison of the JSP 1.2 and 1.1 TLD file formats.

New DOCTYPE Declaration

Tag library descriptor files start with an XML header, then have a DOCTYPE declaration and a taglib element. The ...

Get More Servlets and JavaServer Pages™ now with O’Reilly online learning.

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