14.3. Directives
Directives are interpreted in page preprocessing. Before the JSP or its resulting servlet is executed, the page directives are processed. Directives look like this:
<%@ someDirective attribute="value" %>
There are three directive types: page, include, and taglib.
14.3.1. page Directive
Page directives are used to perform certain tasks before the page is loaded. Table 14.1 shows the attributes and accompanying descriptions for the page directive:
Attribute | Description |
---|---|
import | Specify packages to import, just as in Java programming. |
errorPage | Relative URL for the errorPage for this page. |
extends | Java class name that this JSP will extend (rarely used). |
session | Whether this page participates in a ... |
Get Java™ for ColdFusion® Developers now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.