Creating and Editing Tags

See Also

A tag consists of a tag signature plus a tag handler, which is a body of Java code. The IDE generates skeleton code for tag handlers based on specifications you supply in the Tag Customizer dialog box. You then edit the tag handler code directly to insert the logic that implements the features of the tag.

To create a tag:

  1. In the Filesystems window, right-click the tag library descriptor's (TLD) node.
  2. Choose Add Tag from the contextual menu. The Add New Tag dialog box appears.
  3. In the Add New Tag dialog box, edit the tag. See Tag Customizer Fields for more information.
  4. Click OK to have the changes take effect immediately and to dismiss the Add New Tag dialog box.

To edit a tag:

  1. In the Filesystems window, right-click the tag and choose Customize from the contextual menu.
  2. In the Tag Customizer dialog box, edit the tag. See Tag Customizer Fields for more information.
  3. Click OK to have the changes take effect immediately and to dismiss the Tag Customizer. Click Apply to apply the changes without dismissing the Tag Customizer.

Once a Tag Customizer is displayed, it tracks the selection and shows the properties of any tag that is selected.

Tag Customizer Fields

Fields on the General page include:

Fields on the Code Generation page include:

Fields on the Icons page include:

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

See Also
Customizing Tag Attributes
Customizing Scripting Variables
Generating Tag Handlers

Legal Notices
 
 
 

 

See Also