JSP directives do not produce any output. They are used to set global values like classdeclaration, content type etc. Directives have scope for entire JSP file. They start with<%@ and ends with %>. There are three main directives that can be used in JSP:-
page directive: Page directive is used to define page attributes the JSP file.
include directive: The include directive informs the JSP engine to include the content of the resource in the current JSP page.
taglib directive: Taglib are also termed as JSP tag extensions. They provide a way of encapsulating reusablefunctionality on JSP pages.