Adding a taglib directive to a JSP file

Before you can insert custom tags in your JSP file, you must insert a JSP taglib directive into the JSP page to obtain a tag library location.

Procedure

  1. Open the JSP file in the Web Page Editor. Right-click it and select Open with > Web Page Editor.
  2. Open the palette. Click Window > Show view > Palette
  3. Drag and drop a Directive -taglib from the JSP Tags in the palette.
  4. Click the Directive -taglib object in the editor. Go to the Properties view and open the Attributes tab.
  5. Edit the properties of the directive by adding a prefix, tagdir, and uri.
  6. Save the page.

What to do next

Now that you have added a taglib directive to your JSP file, you can specify the taglib directive.
Icon that indicates the type of topic Task topic
Timestamp icon Last updated: July 17, 2017 21:58

File name: taddtaglib2jsp.html