7. JSP directives


JSP Comment Tag :Previous                                                                        Next: JSP Implicit Objects

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







JSP Comment Tag :Previous                                                                        Next: JSP Implicit Objects