Editing TLD Files
See Also
You can use the Tag Library Customizer or the Source Editor to
edit a tag library descriptor (TLD) file.
|
Only TLD files that conform to JSP 1.1 or 1.2 specifications can be edited
in the customizer and used to generate tag handlers. Other versions are
treated as XML files and must be edited in the Source Editor. |
To edit a TLD using the Tag Library Customizer:
- In the Filesystems window, right-click the TLD file's node and choose Customize
from the contextual menu.
- In the Tag Library Customizer, edit the tag library discriptor. See Tag
Library Customizer Fields for more information.
- Click OK to have the changes take effect immediately and dismiss the Tag
Library Customizer, or click Apply to apply the changes without dismissing
the customizer.
Once a Tag Library Customizer is displayed, it tracks the selections in the
Filesystems window and shows the properties of any tag library descriptor that is selected.
Tag Library Customizer Fields
- Short Name. Specifies a simple name that can be used by JSP page
authoring tools to suggest a namespace prefix for using the tag library in
a JSP page. The default is the .tld filename, without the .tld
extension.
- Display Name. Specifies a short name intended for display by tools.
It does not need to be unique.
- Tag Library Version. Specifies the version of the tag library being
created. The default is 1.0.
- URI. Specifies a public URI that uniquely identifies this version
of the tag library. JSP files that use this tag library must use this
value for the uri attribute in the taglib directive, unless there
exists a jsp-config element in the web.xml file that maps a
different URI to the tag library.
- JSP Version. Specifies the JSP version that the tag library requires.
The default is 1.2.
- Small Icon. Specifies the name of a file containing a small (16 x
16) icon image for use by tools. The file name is a relative path within the
tag library.
- Large Icon. Specifies the name of a file containing a large (32 x
32) icon image for use by tools. The file name is a relative path within the
tag library.
- Tag Handler Generation Root. Specifies the tag handler generation
root directory, which is the directory in which the packages and tag handler
classes are placed when they are generated using the Generate Tag Handlers
action on the tag library contextual menu. You can type the directory for
the root in the text field or click the ellipsis button (...) to display a
file chooser in which you can specify the directory.
- Jar File. Specifies the JAR file in which the tag library will be
packaged. The default value is a JAR file with the same name as the tag library.
- Description. Specifies descriptive information about the tag library.
For general information about tag libraries, see JavaServer Pages Specification
available at http://java.sun.com/products/jsp/download.html.
Legal Notices