Adding a Tag Library From the Filesystem

See Also

A tag library JAR file that is used by a web module must reside in the WEB-INF/lib directory or in the server's shared library directory. In order for the IDE to provide code completion for the tag library, the JAR file must be in the IDE's class path. The easiest way to make the JAR file available to both the IDE and the server is to put the JAR file in the WEB-INF/lib directory.

To add a tag library JAR file from the filesystem to a web module:

  1. If the tag library is not mounted in the Filesystem's window, choose File and choose Mount Filesystem and follow the steps for mounting an archive file.
  2. In the Filesystem's window, right-click the WEB-INF node.
  3. From the contextual menu, choose Add JSP Tag Library and choose Find in Filesystem.
  4. In the JSP Tag Library Browser dialog box, browse to and select a custom tag library.
  5. Click OK. The IDE adds the library to the WEB-INF/lib directory.
  6. (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.
See Also
About Tag Libraries
Using Tag Libraries

Legal Notices