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

Advertisements




Facebook Likes

Advertisements