Defining a Tag Handler's TLD Information
See Also
- Click the Add Corresponding Tag to the Tag Library Descriptor checkbox if
you want the IDE to create entries in a TLD file for the tag handler.
If you click this checkbox, you must have a TLD file available. If not, create
one first.
- If you clicked the Add Corresponding Tag to the Tag Library Descriptor checkbox,
do the following:
- Click Browse to select the tag library descriptor (TLD file) for your
tag handler. By default, the TLD files are in the WEB-INF/tlds folder.
- Type the name of the tag. This is the name you use in the JSP file to refer
to the tag handler.
- Specify the allowable content of the tag handler:
- empty. Tags that do not accept a body
- scriptless (default). Body content containing custom and standard tags and HTML text.
- tagdependent. All other types of body content, such as SQL statements passed to the query tag.
- Click New to create attributes for the tag handler. Use the Add New Attribute
dialog box to create an attribute as follows:
- Attribute Name. Specifies the name of the attribute.
- Attribute Type. Specifies the type of the class being referred to.
Choose a type from the drop-down menu or type one yourself.
The default is java.lang.String.
- required attribute. If selected, specifies that the attribute must be given an argument
whenever the tag is called. Set to False by default.
- value evaluated at request time. A radio button, which, if selected, specifies that the value of
the attribute can be dynamically calculated at request time. Set to
True by default. Mutually exclusive with the Value evaluated at
JSP translation time attribute.
- value evaluated at JSP translation time. A radio button, which, if selected, specifies that the value
of the attribute is static and determined at translation time.
Set to False by default. Mutually exclusive with the Value
evaluated request time attribute.
- Click Finish.
- See Also
- Creating a Tag Handler
- About Tag Library Descriptors
- Creating a Tag Library Descriptor
Legal Notices