Infolinks In Text Ads

Dec 1, 2010

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.

No comments:

Post a Comment

LinkWithin

Related Posts Plugin for WordPress, Blogger...