Name
Page Directive
Synopsis
Defines page-dependent attributes, such as scripting language, error page, and buffering requirements.
Syntax
<@ page [autoFlush="true|false"] [buffer="8kb|NN
kb|none"] [contentType="mimeType
"] [errorPage="pageOrContextRelativePath
"] [extends="className
"] [import="packageList
"] [info="info
"] [isErrorPage="true|false"] [isThreadSafe="true|false"] [language="java|language
"] [pageEncoding="encoding
"] [session="true|false" %>
Attributes
Attribute name |
Default |
Description |
---|---|---|
autoFlush |
|
Set to |
buffer |
8kb |
Specifies the buffer size for the page. The value must be expressed
as the size in kilobytes followed by |
contentType |
|
The MIME type for the response generated by the page and optionally
the response charset, e.g.,
The default MIME type is If no charset is specified, ISO-8859-1 is used for a regular JSP page and UTF-8 for a JSP Document. |
errorPage |
No default |
A page- or context-relative URI path for the JSP page, servlet, or static page to forward to in case an exception is thrown by code in the page. |
extends |
No default |
The fully qualified name of a Java class the ... |
Get JavaServer Pages, Second Edition 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.