Adding a Tag Library From the Repository

See Also

The Custom Tag Library Repository is a tool for storing commonly used tag library JAR files so that it is easy to add the tag libraries to web modules.

To add a tag library to a web module from the repository:

  1. In the Explorer, right-click the WEB-INF node for the relevant web module.
  2. From the contextual menu, choose Add JSP Tag Library and choose Find in Tag Library Repository.
  3. In the JSP Tag Library Repository Browser dialog box, select one or more tag libraries.
  4. Click OK. The IDE adds the library to the WEB-INF/lib directory.
  5. (Optional) If desired, you can put the TLD (tag library descriptor) in the WEB-INF directory, or a subdirectory such as WEB-INF/tags. However, neither the IDE nor the server requires the TLD file in the WEB-INF tree if one exists in the tag library JAR file and if the tag library is in the WEB-INF/lib directory. In this case, you may want to add the TLD file to the web module so that you can look up the URI.
tip Note that when you add a tag library to a web module from the repository, or add a tag library to the repository, the system copies the tag library and leaves the original version intact. In this situation, you might have multiple copies of a tag library stored in various locations. Also note that the tag library is mounted within the Filesystems window if it isn't already mounted.
See Also
Using the Tag Library Repository
Using Tag Libraries
About Tag Libraries

Legal Notices