What are JSP Directives?

JSPJava 8Object Oriented ProgrammingProgramming

A JSP directive affects the overall structure of the servlet class. It usually has the following form −

<%@ directive attribute="value" %>

There are three types of directive tag −

S.No.Directive & Description
1<%@ page ... %>
Defines page-dependent attributes, such as scripting language, error page, and buffering requirements.
2<%@ include ... %>
Includes a file during the translation phase.
3<%@ taglib ... %>
Declares a tag library, containing custom actions, used in the page
Published on 20-Mar-2019 06:14:20