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"%>

<HTML>
<HEAD><title>Example Include Directive</title>
</HEAD>
<BODY>
   <logic:empty>
           // some logic here …............
   </logic:empty>
</BODY>
</HTML>

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

Comments

Recent Post

Recent Posts Widget

Popular posts from this blog

Capture image from webcam java code, examples

Use of req.query, req.params and req.body in NODE JS

How to capture finger prints in java