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:

  1. Open the JSP file in Page Designer.

  2. From the main menu, click

    Page | Page Properties. The Page Properties dialog box opens.

  3. Click the

    JSP Tags tab.

  4. In the Tag type drop-down list, select

    JSP Directive - taglib then click the

    Add button.

  5. 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.

  6. 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

Custom tag libraries

 

Related tasks

Adding custom JSP tags

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

HTML and JSTL tag libraries