When
you choose to insert a custom tag, Page Designer references the taglib directive
and displays the tags from that custom library. Once you have specified the
taglib directive, you need to add the custom tags to a JSP file, in order
for the editor to recognize the tags you specified.
In the Design page, the Custom tag
icon indicates a custom tag. A dashed line surrounding the icon indicates
that its content is JSP. A solid line surrounding the icon indicates that
its content is empty or tag-dependent. When inserting a custom tag whose content
is empty or tag-dependent into an existing JSP page, the custom tag replaces
the selected fragment.
You can also customize the appearance of the
icon by using preferences. Select . In the
Editing Symbols group, you can
select one of the following options to determine how custom tags will be displayed
in the Design page:
Show editing symbols for:- line-break
- comment
- script
- JSP - Show with icon
- JSP - 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 the 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.
Now
that you have added the custom tag to your JSP file, you can
edit the properties of the custom tag.