JSP Directives



Scripting Elements :

  1. The JSP directives tells the web container how to translate a JSP page into the corresponding servlet
  2. There are three types of directives - page directive,include directive, taglib directive
Directive Description
<%@ page … %> Defines page-dependent attributes, such as scripting language, error page, and buffering requirements.
<%@ include … %> Includes a file during the translation phase.
<%@ taglib … %> Declares a tag library, containing custom actions, used in the page

Please refer the following links to view the detailed chapters.

Directive Link
Page Directives Used to define the set of attributes that are applicable to JSP page
Include Directives Used to tell the container to include external files during translation
Taglib Directives Used to create custom tag library