Editing the properties of a custom tag
After inserting custom tags 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 page.
- Adding the Tag Library Descriptor (TLD) file.
- Adding a taglib directive to a JSP file.
- Specifying the taglib directive.
- Adding a custom tag to a JSP file.
To edit the properties of a custom tag:
- To edit attributes of a custom tag, use the Source page.
- To modify the content of a custom tag whose content is tagdependent, use the Source page.
- To modify the content of a custom tag whose content is JSP, you can use both the Design and Source pages.
By default, custom tags are displayed as the Custom tag icon in the Design page. 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 will be displayed in the Design page: 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 page in place of the default icon.
Below is a portion of a JSP file that displays 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>
Related concepts
Related tasks
Adding the Tag Library Descriptor (TLD) file
Adding a taglib directive to a JSP file
Specifying the taglib directive
Adding a custom tag to a JSP file
Editing a Web deployment descriptor file for a custom tag library
Related reference