JSP directives (Directive) are designed for the JSP engine, and they do not directly produce any visible output, but simply tell the engine how to handle the rest of the JSP page.
The three directives are defined in the JSP 2.0 specification:
- Page directive
- Include directives
- TAGLIB directive
- The full syntax of the page directive defined in the JSP 2.0 specification:
<%@ Page [language= "Java" ] [ extends= "Package.class" ] [ Import= "{Package.class | package.*}, ..."] [Session= "true | False] [Buffer= "None | 8kb | SIZEKB "] [AutoFlush= "true | False] [IsThreadSafe= "true | False] [Info= "Text"] [ErrorPage= "Relative_url"] [Iserrorpage= "true | False] [ContentType= "MimeType [; Charset=characterset]" | "Text/html; Charset=iso-8859-1 "] [pageencoding= "CharacterSet | Iso-8859-1 "] [iselignored= "true | False ] %>
[Email protected]instructionStatic inclusions.The 2.jsp:include instruction is dynamically included.
Introduction to the Java EE learning-jsp directive