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