Strong page commands in JSP: 2008.10.9
The page command is used to define the global attributes in the JSP file. A JSP page can contain multiple page commands. In addition to the import attribute, other attributes can only appear once.
<% @ Page
[Language = "Java"]
[Import = "{package. Class | package. *},..."]
[Contenttype = "type; charset = charset"]
[Session = "True | false"]
[Buffer = "None | 8kb | sizekb"]
[Autoflash = "True | false"]
[Isthreadsafe = "True | false"]
[Info = "text"]
[Errorpage = "relativeurl]
[Iserrorpage = "True | false"]
[Extends = "package. Class"]
[Iselignored = "True | false"]
[Pageencoding = "charset"]
%>
Language: defines the script language to be used. Currently, it can only be "Java", that is, language = "Java ".
Import: similar to General Java import, it is used to introduce the class to be used, but separated by commas. By default, no other classes or packages are introduced. For example, import = "Java. Io. *, java. util. hashtable ".
Session: specify whether the page is involved in the HTTP session. The default value is true, and session = "true ".
Buffer: Specifies the buffer mode for the customer output stream. If the value is none, no buffer is provided. If the value is specified, the output is buffered with a buffer not smaller than this value. Used with autoflash. The default value is no less than 8 KB, which can be set based on different servers. For example, buffer = "64kb ".
Autoflash: If the value true indicates that the buffer is full, the client output is refreshed. If the value false indicates that the buffer is full, an exception occurs, indicating that the buffer overflows. The default value is true, for example, autoflash = "true ".
Info: defines a string for JSP page information, which can be obtained using Servlet. getservletinfo. Omitted by default. For example, info = "test page ".
Iserrorpage: indicates whether the current page is the errorpage target of another page. If it is set to true, the exception object can be used. On the contrary, if it is set to false, the exception object cannot be used. The default value is false. For example, iserrorpage = "true ".
Errorpage: defines the page called when an exception occurs on this page. Ignored by default, such as errorpage = "error. jsp ".
Isthreadsafe: Used to set whether JSP files can be used in multiple threads. If it is set to true, a JSP can process requests from multiple users at the same time. If it is set to false, a JSP can only process one request at a time. For example, isthreadsafe = "true ".
Contenttype: defines the MIME type of JSP character encoding and page response. Type = MIME type; charset = charset. The default is type = text/html, charset = iso8859-1. For example, contenttype = "text/html; charset = gb2312"
Pageencoding: The character encoding of the JSP page. The default value is pageencoding = "iso-8859-1", such as pageencoding = "gb2312 ".
Iselignored: Specifies whether El (Expression Language) is ignored. If it is true, the container ignores the calculation of the "$ {}" expression. The default value is determined by the version of the web. XML description file. Versions earlier than servlet2.3 are ignored. For example, iselignored = "true ".