Adding a taglib directive to a JSP file
Before you can insert custom tags in your JSP file, insert a JSP taglib directive into the JSP page to obtain a tag library location.
Adding the Tag Library Descriptor (TLD) file.
To add a taglib directive to a JSP file:
- Open the JSP file in Page Designer.
- From the main menu, click
Page | Page Properties. The Page Properties dialog box opens.
- Click the
JSP Tags tab.
- In the Tag type drop-down list, select
JSP Directive - taglib then click the
Add button.
- On the Tag Library page of the dialog box, select one of the available tag libraries, or click the
Import button to locate and add a tag library to the list, and then select it. The dialog box will automatically populate the informational fields that describe the tag library and its contents. Select the tag libraries that you want to add. You must specify a
Prefix value for the directive. Click OK.
- On the Page Properties dialog box, click OK. The taglib directive is added to your JSP file.
Now that you have added a taglib directive to your JSP file, you can specify the taglib directive.
Related concepts
Related tasks
Adding the Tag Library Descriptor (TLD) file
Specifying the taglib directive
Adding a custom tag to a JSP file
Editing the properties of a custom tag
Editing a Web deployment descriptor file for a custom tag library
Related reference