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. 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 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

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

 

Content Protection by DMCA.com
Please Share