JSP directives

JSP directives provide instructions and directions to the web container about how to control the processing JSP page.


 <%@ directiveName attributeName="attributValue" %>

Types of JSP directives.

  1. page directive.
  2. include directive.
  3. taglib directive.

JSP page directive:

Page directive is used to provide the instructions to the web container that are specific to the current JSP page. It defines the page-specific attributes like a scripting language, error page, etc.

Page directive attributes.

  1. import
  2. session
  3. buffer
  4. autoflush
  5. contentType
  6. isErrorPage
  7. errorPage
  8. isThreadSafe
  9. language
  10. info