JSP Taglib Directive
The JSP taglib directive is used to define a tag library that
defines many tags. We use the TLD (Tag Library Descriptor) file to define the
tags. In the custom tag section we will use this tag so it will be better to
learn it in custom tag.
Syntax JSP Taglib directive
Example of JSP Taglib directive
We are using our tag named
currentDate. To use this tag we must specify the taglib directive so the
container may get information about the tag.
<html>
<body>
<%@ taglib uri="http://www.blogger.com/tags" prefix="mytag" %>
<mytag:currentDate/>
</body>
</html>
We are using our tag named
currentDate. To use this tag we must specify the taglib directive so the
container may get information about the tag.
<html>
<body>
<%@ taglib uri="http://www.blogger.com/tags" prefix="mytag" %>
<mytag:currentDate/>
</body>
</html>
No comments:
Post a Comment