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 |