JSP Directives


JSP Directives tells the JSP Container how container must translate JSP Page into corresponding servlet. Directives do not produce any visible output, they only instruct the JSP Container on how to translate jsp page into corresponding servlet. Directives have the following syntax -
<%@ directive-name attribute_1="value_1" attribute_2="value_2" ... %> 

A directive can have one or more attributes.       
Note that the space after opening <%@ and before closing %> are optional, but it is recommended to provide these spaces to improve readability.

JSP provides the following three types of directives -
1- page Directive
2- include Directive
3- taglib Directive