The custom tag library search path
Custom tags in a JSP file perform actions defined in a custom
tag library. PowerBuilder 9 supports custom tag libraries
that use the JSP 1.2 format. On the JSP page of the System Options
dialog box, you can indicate paths that you want PowerBuilder to
search to add tag library descriptor (TLD) files to the Components
tab of the System Tree. You do not need to restart PowerBuilder for
any changes you make to the custom tag library path to take effect.
To
go to the JSP page of the System Options dialog, you can either:
- Select Tools>System Options from the menu
bar and click the JSP tab. - Right-click anywhere in the Components tab of the
System Tree and select Custom Tag Libraries Search Path from the
pop-up menu.
To add a tag library to a JSP page, you can insert a taglib
page directive or you can drag a tag library from the Components
tab of the System Tree to a target page in the HTML editor.
When you add a custom tag library to a page, you need to specify
a prefix to identify the custom tag as well as the location where
the TLD file can be found relative to the root of the Web application.
The folder that contains the deployed Web application has a WEB-INF subdirectory.
Typically the TLD files are deployed to the tlds subdirectory of
the WEB-INF directory. You must also remember
to make your custom tag library classes available on the class path
of the application server.
For more information about custom tag libraries, see “Custom tags”. For information
about the Custom Tag Library page of the Deployment Configuration
dialog box, see “Tag Libraries”.