JSP Directives
In JSP, the role of directive is to provide directions to the JSP container regarding the compilation of JSP page. Directives convey information from JSP page to container that give special instruction at translation time.
The three types of directive provided by JSP is as follows: -
- Taglib Directive
- Include Directive
- Page Directive
</html> <head> <title>Tutorial and Example</title> </head> <body> <h2 align="center"> <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <c:out value="Welcome to JSP Taglib Directive"/> </h2> </body> </html>Output: We will learn more about taglib directive in JSP custom tag.