Defines a tag library and prefix for the custom tags used in the JSP page.
<%@ taglib
{uri="URI" | tagdir="/WEB-INF/tags[/subdir]+"} prefix="tagPrefix" %>
None. Included in <jsp:root> and in any other XML element using the xmlns
attribute instead:
<anyxmlelement xmlns:prefix="{uri | urn:jsptld:path | urn:jsptagdir:/WEB-INF/tags[/subdir]+}" >
<%@ taglib uri="http://www.jspcentral.com/tags" prefix="public" %> <public:loop> ... </public:loop>
The taglib directive declares that the JSP page uses custom tags, names the tag library that defines them, and specifies their tag prefix.
You must use a taglib directive before you use the custom tag in a JSP page. You can use more than one taglib directive in a JSP page, but the prefix defined in each must be unique.
Tutorials on creating custom tags are available at http://java.sun.com/products/jsp/taglibraries.html#tutorials.
uri="
URI"
http://www.hut.fi/u/jkorpela/rfc/2396/full.html
web.xml
extended using the implicit maps in the packaged tag libraries. If URI is pathname, it is interpreted relative to the root of the web application and should resolve to a TLD file directly, or to a JAR file that has a TLD file at location META-INF/taglib.tld.
tagdir="/WEB-INF/tags[/
subdir]+"
/WEB-INF/tags/
directory or a subdirectory. An implicit tag library descriptor is used. A translation error must occur under any of these conditions:
/WEB-INF/tags/
.
uri
attribute.
prefix="
tagPrefix"