In order to implement custom JSP
tags, you must add the Tag Library Descriptor (TLD) file (taglib.tld)
to your project.
Procedure
- Add the independent tag library descriptor, taglib.tld
to your WEB-INF folder:
- In the Enterprise Explorer view of the Web perspective,
select the WebContent/WEB-INF folder in your
web project.
- Right-click the WEB-INF folder
and select Import.
- Click and then click Next.
- In the File System page of the Import wizard, click Browse to
select the directory from which you want to import your independent
tag library descriptor, taglib.tld.
- Select the tld file from the tree viewer on the wizard.
- Click Finish to add your independent
tag library to your WEB-INF folder.
- Add the custom tag library to the web project:
- In the Enterprise Explorer view of the Web perspective,
right-click the web project and select Import.
- Click .
- In the File System page of the Import wizard, click Browse to
select the directory from which you want to import your custom tag
library.
- Select the library from the navigation tree in the wizard
- Click Finish to add your custom
tag library to your web project.
What to do next
After you add the TLD file to
your project, you can
add
a taglib directive to your JSP file.