You can use JSP syntax in tag files to create custom tags. Tag files can have the following extensions:
All tag files that are under WEB-INF/tags are available for use by the JSP files in that web application. Each folder under WEB-INF/tags represents a separate tag library. You use the tagdir attribute in a taglib directive to specify the location of the tag library folder. For example:
<%@ taglib prefix="x" tagdir="/WEB-INF/tags/xtremeLib" %>
Tag files can also be referenced in a TLD file and bundled in a JAR file.
The IDE recognizes tag files and provides wizard support for creating new tag files.
![]() |
A tag file is run when the JSP file in which it is defined is deployed. You can set breakpoints in the tag file. Then, when the JSP file is debugged, the tag file is debugged too. |
For a full guide to creating and using tag files, see: