Taglib Directive
Advertisements
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.sitesbay.com/customtag/tags" prefix="mytag" %> <mytag:currentDate/> </body> </html>
Google Advertisment