JSP directives

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

Syntax: <%@ directiveName attributeName=”attributValue” %>  

Types of JSP directives.

  1. 1. page directive.
  2. 2. include directive.
  3. 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 scripting language, error page etc.

Page directive attributes.

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

 
Next Topic: import attribute of JSP page directive with example.
Previous Topic: JSP comment tag with example.

Related Topics:

import attribute of JSP page directive with example.
Session attribute of JSP page directive with example.
buffer attribute in JSP page directive with example.
autoFlush attribute in JSP page directive with example.
contentType attribute in JSP page directive with example.
isErrorPage and errorPage attribute in JSP page directive with example.
isThreadSafe attribute in JSP page directive with example.
language attribute in JSP page directive with example.
info attribute in JSP page directive with example.
JSP include directive with example.
JSP taglib directive with example.