- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What is a taglib directive in JSP?
The JavaServer Pages API allow you to define custom JSP tags that look like HTML or XML tags and a tag library is a set of user-defined tags that implement custom behavior.
The taglib directive declares that your JSP page uses a set of custom tags, identifies the location of the library, and provides means for identifying the custom tags in your JSP page.
The taglib directive follows the syntax given below −
<%@ taglib uri="uri" prefix = "prefixOfTag" >
Here, the uri attribute value resolves to a location the container understands and the prefix attribute informs a container what bits of markup are custom actions.
You can write the XML equivalent of the above syntax as follows −
<jsp:directive.taglib uri = "uri" prefix = "prefixOfTag" />
- Related Articles
- What is the purpose of taglib directive in JSP?
- Please share one example of using taglib directive in JSP
- What is a page directive in JSP?
- What is a include directive in JSP?
- What are various attributes Of page directive in JSP?
- What is the difference between include action and include directive in JSP?
- Please share a running example of include directive in JSP
- How many types of directive tags JSP supports?
- What is a pre-processor directive in C#?
- What is a conditional pre-processor directive in C#?
- I am facing problem in using include directive tag in jsp. Please share a working example.
- What is #define pre-processor directive in C#?
- What is a request object in JSP?
- What is a response object in JSP?
- What is a config Object in JSP?

Advertisements