JSP Directive Taglib

Taglib Directive :-

Taglib Directive is used for include the tag from tag library. It defines the prefix for particular tag library.

Syntax of Taglib Directivs is :
<%@ taglib="URIToTagLibrary"  prefix="tagPrefix"%>

Example :

<%@ taglib uri="struts-bean.tld" prefix="bean"%>
<%@ taglib uri="struts-html.tld" prefix="html"%>
<%@ taglib uri="struts-logic.tld" prefix="logic"%>

<HEAD><title>Example Include Directive</title>
           // some logic here …............

Taglib is used to define the custom tag library and used the tag of this library through the tag prefix.