Page instruction (page directive)

Source: Internet
Author: User
page Instruction (page directive)Properties of page directive:
(1) Language: Specifies the scripting language used in JSP pages;
(2) ContentType: Specifies the MIME type and character encoding used when server-side sends data to the browser end, the default value is "text/html;" Charset=iso-8859-1 ";
(3) Pageencoding: Specifies the character encoding of the JSP page itself;
(4) Import: importing Java classes;
(5) Session: Specifies whether the session object can be used, and the default value is true. If you set session= "false", the session object cannot be used in this JSP page;
(6) Buffer: Set the size of the Out object, the default value is 8KB (8192);
(7) AutoFlush: Sets whether to automatically refresh when the buffer fills up, and the default value is true. When the buffer fills up, if autoflush= "true", the buffer is automatically refreshed, and if autoflush= "false", an exception is generated. If buffer= "None", AutoFlush cannot be set to false;
(8) IsThreadSafe: Specifies whether the JSP page is thread safe and the default value is true. If isthreadsafe= "true", the JSP container is allowed to send concurrent requests to the JSP page, and if isthreadsafe= "false", the JSP container can send only one request at a time. Isthreadsafe= "False" is not recommended because it affects system performance; second, if the server uses the scenario shared by the instance, the specified IsThreadSafe is false or does not meet the purpose of prohibiting concurrent requests;
(9) Info: The content of info can be obtained by Servlet.getservletinfo () method;
(a) ErrorPage: Specifies the page to which the JSP page jumps when the error occurs;
(one) Iserrorpage: The default value is False, if you set iserrorpage= "true", you can use the exception object in this JSP page;
(a) Iselignored: Specifies whether El expressions in the JSP file are ignored, and if iselignored= "true", the El expression is ignored;
(extends): Specifies the parent class of the JSP page;

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.