<html>
<head>
<title>Page Directive</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div id="Description">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">Page Directive</td>
<td valign="top" class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description">
<p>The <span class="LITERAL">page</span> directive defines page-dependent
attributes, such as scripting language, error page, and buffering
requirements.
</p>

<p>A JSP translation unit (the source file and any files included via
the <span class="LITERAL">include</span> directive) can contain more than one
<span class="LITERAL">page</span> directive as long as each attribute, with the
exception of the <span class="LITERAL">import</span> attribute, occurs no more
than once. If multiple <span class="LITERAL">import</span> attribute values are
used, they are combined into one list of <span class="LITERAL">import</span>
definitions.
</p>

<p>Example:</p>

<span class="PROGRAMLISTING"><pre>&lt;%@ page language="java" 
  contentType="text/html;charset=Shift_JIS"%&gt;
&lt;%@ page import="java.util.*, java.text.*" %&gt;
&lt;%@ page import="java.sql.Date" %&gt;</pre></span>
</td>
</tr>
</table>
</div>
<div id="autoFlush">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">autoFlush</td>
<td valign="top" class="COMPATIBILITY">Default: <span class="LITERAL">true</span></td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description">
<p>Set to <span class="LITERAL">true</span> if the page buffer should be flushed
automatically when it's full or to <span class="LITERAL">false</span> if
an exception should be thrown when it's full.
</p>
</td>
</tr>
</table>
</div>
<div id="buffer">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">buffer</td>
<td valign="top" class="COMPATIBILITY">Default: <span class="LITERAL">8kb</span></td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description">
<p>Specifies the buffer size for the page. The value must be expressed
as the size in kilobytes followed by <span class="LITERAL">kb</span>, or be the
keyword <span class="LITERAL">none</span> to disable buffering.
</p>
</td>
</tr>
</table>
</div>
<div id="contentType">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">contentType</td>
<td valign="top" class="COMPATIBILITY">Default: <span class="LITERAL">text/html</span></td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description">
<p>The MIME type for the response generated by the page, and optionally
the charset for the source page (e.g.,
<span class="LITERAL">text/html;charset=Shift_JIS</span>).
</p>
</td>
</tr>
</table>
</div>
<div id="errorPage">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">errorPage</td>
<td valign="top" class="COMPATIBILITY">No default</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description">
<p>A page- or context-relative URI path to which the JSP page will
forward users if an exception is thrown by code in the page.
</p>
</td>
</tr>
</table>
</div>
<div id="extends">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">extends</td>
<td valign="top" class="COMPATIBILITY">No default</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description">
<p>The fully qualified name of a Java class that the generated JSP page
implementation class extends. The class must implement the
<span class="LITERAL">JspPage</span> or <span class="LITERAL">HttpJspPage</span>
interface in the <span class="LITERAL">javax.servlet.jsp package</span>.
</p>

<p>Note that the recommendation is to <em>not</em> use this
attribute. Specifying your own superclass restricts the web
container's ability to provide a specialized, high-performance
superclass.
</p>
</td>
</tr>
</table>
</div>
<div id="import">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">import</td>
<td valign="top" class="COMPATIBILITY">No default</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description">
<p>A Java import declaration; i.e., a comma-separated list of fully
qualified class names or package names followed by
<span class="LITERAL">.*</span> (for all public classes in the package).
</p>
</td>
</tr>
</table>
</div>
<div id="info">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">info</td>
<td valign="top" class="COMPATIBILITY">No default</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description">
<p>Text that a web container may use to describe the page in its
administration user interface.
</p>
</td>
</tr>
</table>
</div>
<div id="isErrorPage">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">isErrorPage</td>
<td valign="top" class="COMPATIBILITY">Default: <span class="LITERAL">false</span></td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description">
<p>Set to <span class="LITERAL">true</span> for a page that is used as an error
page, to make the implicit exception variable available to scripting
elements. Use <span class="LITERAL">false</span> for regular JSP pages.
</p>
</td>
</tr>
</table>
</div>
<div id="isThreadSafe">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">isThreadSafe</td>
<td valign="top" class="COMPATIBILITY">Default: <span class="LITERAL">true</span></td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description">
<p>Set to <span class="LITERAL">true</span> if the container is allowed to run
multiple threads through the page (i.e., let the page serve parallel
requests). If set to <span class="LITERAL">false</span>, the container
serializes all requests for the page. It may also use a pool of JSP
page implementation class instances to serve more than one request at
a time. The recommendation is to always use <span class="LITERAL">true</span>
and to handle multithread issues by avoiding JSP declarations and
ensuring that all objects used by the page are thread-safe.
</p>
</td>
</tr>
</table>
</div>
<div id="language">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">language</td>
<td valign="top" class="COMPATIBILITY">Default: <span class="LITERAL">java</span></td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description">
<p>The scripting language used in the page.</p>
</td>
</tr>
</table>
</div>
<div id="session">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">session</td>
<td valign="top" class="COMPATIBILITY">Default: <span class="LITERAL">true</span></td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description">
<p>Set to <span class="LITERAL">true</span> if the page should participate in a
user session. If set to <span class="LITERAL">false</span>, the implicit
<span class="LITERAL">session</span> variable is not available to scripting
elements in the page.
</p>
</td>
</tr>
</table>
</div>
</body>
</html>