Defines a tag library and prefix for the custom tags used in the JSP page.
<%@ taglib uri="
URIForLibrary
" prefix="
tagPrefix
" %>
None. However, see <jsp:root>.
<%@ 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="
URIForLibrary
"
http://www.hut.fi/u/jkorpela/rfc/2396/full.html
URI
is a URL or URN, then the TLD is located by consulting the mapping indicated in 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.
prefix="
tagPrefix
"