Customizing Tags

See Also

A custom 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 Explorer, right-click the node representing the Tag Library descriptor to which you want to add a tag.
  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 customize an existing tag:

  1. In the Explorer, right-click the tag you want to customize.
  2. Choose Customize from the contextual menu.
  3. In the Tag Customizer 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 Tag Customizer. Click Apply to apply the changes without dismissing the Tag Customizer.

Alternatively, you can double-click the tag to be customized. The contents of the Tag Customizer reflect the properties of the selected tag. 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 panel include:

Fields on the Code Generation panel include:

Fields on the Icons panel include:

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

See Also
Customizing Tag Attributes
Customizing Scripting Variables
Generating Tag Handlers

Legal Notices
 
 
 

 

See Also