Editing the properties of a custom tag

After custom tags are inserted into your web pages, you can edit attribute names and values, and modify tag content in the Source page. If the content type is JSP, you can also edit in the Design or Split pane.

Procedure

  1. To edit attributes of a custom tag, use the Source pane.
  2. To modify the content of a custom tag whose content is tagdependent, use the Source pane.
  3. To modify the content of a custom tag whose content is JSP, you can use both the Design and Source panes.

Results

By default, custom tags are display as the Custom tag icon Picture of the Custom Tag icon in the Design pane. You can customize the appearance of the icon using preferences. Select Windows > Preferences > Web > Page Design > Appearance > Editing Symbols. You can select one of the following options to determine how custom tags are displayed in the Design pane: JSP:
  • Show with icon
  • Show with icon and text
Note: In JSP 1.2 TLD files, each custom tag can have an optional small-icon that can be used by tools. If a small icon is specified for a custom tag, the icon is used in the Design pane in place of the default icon.

Example

This is a portion of a JSP file that displays a custom tag that has been modified. The Name attribute has been edited.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0.1 Transitional//EN">
<HEAD>
<META name="GENERATOR" content="IBM Page Designer">
<META http-equiv="Content-Style-Type" content="text/css">
<TITLE>Hello World!</TITLE>
<%@ taglib uri="mytags" prefix="mt" %>
</HEAD>
     <HR>
     <mt:helloWorld name="foo"/>
     <HR>
Icon that indicates the type of topic Task topic
Timestamp icon Last updated: July 17, 2017 21:58

File name: tedcusttagprop.html