The page directive is used to define global properties in the JSP file. A JSP page can contain multiple page directives, except for the Import property, which can occur only once.
<%@ page
[language= "Java"]//setting (declaring) language type
[import= "{package.class|package.*},..."]//Guide Package
[contenttype= "Type;charset=charset"]
[session= "True|false"] whether HTTP sessions are enabled
[buffer= "none|8kb|sizekb"] Buffer
[autoflash= "True|false"]
[isthreadsafe= "True|false"]
[info= "Text"]
[errorpage= "Relativeurl]
[iserrorpage= "True|false"]
[extends= "Package.class"]
[iselignored= "True|false"]
[pageencoding= "CHARSET"]
%>
Language: Define the scripting language you want to use, which is currently only "Java", that is, language= "Java".
Import: As with the General Java import, it is used to introduce the class to be used, just by separating the package or class list with a comma "". Omitted by default, that is, no other classes or packages are introduced. For example, import= "java.io.*,java.util.hashtable".
Session: Specifies whether the containing page participates in an HTTP conversation. The default value is True,session= "true".
Buffer: Specifies the buffering mode to the customer output stream. If none, it is not buffered; If you specify a numeric value, the output is buffered with a buffer that is not less than this value. Used in conjunction with Autoflash. The default is no less than 8KB, which can be set according to different servers. For example, buffer= "64KB".
Autoflash: If the true buffer is full, the output to the client is refreshed, and if a false buffer is full, a run exception appears, indicating a buffer overflow. The default is true, for example autoflash= "true".
Info: For information about JSP pages, define a string that can be obtained using Servlet.getservletinfo (). Default ellipsis. For example, info= "test page."
Iserrorpage: Indicates whether the current page is a errorpage target for another page. If set to True, the exception object can be used. Conversely, if it is set to False, the exception object cannot be used. The default is False, for example, iserrorpage= "true".
ErrorPage: Defines the page that is invoked when this page appears to be an exception. Default ignore, such as errorpage= "error.jsp".
IsThreadSafe: Used to set whether a JSP file can be used more than a thread. If set to true, a JSP can handle requests from multiple users at the same time; instead, a JSP can only process one request at a time if set to false. For example, isthreadsafe= "true".
ContentType: Defines the MIME type for JSP character encodings and page responses. Type=mime Type;charset=charset. Default is Type=text/html,charset=iso8859-1. such as contenttype= "text/html;charset=gb2312"
Pageencoding:jsp the character encoding of the page, the default value is Pageencoding= "iso-8859-1", such as pageencoding= "gb2312".
Iselignored: Specifies whether El (expression language) is ignored. If true, the container ignores the calculation of the "${}" expression. The default value is determined by the version of the Web.xml description file, and servlet2.3 Previous versions will be ignored. For example, iselignored= "true".