Taglib Directive


Prev Tutorial Next Tutorial

Taglib Directive

This is used to use custom tags in JSP page, here the custom tag may be user defined ot JSTL tag or strust, JSF,..... etc.

Syntax

<@ taglib uri="uriofthetaglibrary" prefix="prefixoftaglibrary" %>

Attributes of taglib directive

  • uri

Example of JSP Taglib directive

Example

<html>  
<body>  
  
<%@ taglib uri="http://www.tutorial4us.com/customtag/tags" prefix="mytag" %>  
  
<mytag:currentDate/>  
  
</body>  
</html>  

Prev Tutorial Next Tutorial

Google Advertisements
Download Projects

Google Adsense Advertisements

Buy 3 Year Old Domain, Tutorialday.com, SeosmoTools.com @$200

Buy This Ad Space @$50 per Month, Ad Size 300X250 Contact on: hitesh.xc@gmail.com WhatsApp no. 8882538826

Yahoo Advertisements