[JSP command] Page

Source: Internet
Author: User
Jsp2.0 standardizes 13 attributes of page commands

Language = "scriptinglanguage"
It mainly specifies the language used by JSP Container to compile JSP web pages. According to the JSP 2.0 specification, only Java languages can be used currently, but other languages such as C, C ++, and Perl cannot be added in the future. The default value is Java.

Extends = "classname"
It mainly defines the parent class that the servlet generated by this JSP page inherits.

Import = "importlist"
Mainly defines the Java APIs that can be used by this JSP page

Session = "True | false"
Determines whether the JSP page can use the session object. The default value is true.

Buffer = "None | size in KB"
Determines whether the output stream has a buffer. The default value is an 8 KB buffer.

Autoflush = "True | false"
Determines whether the buffer of the output stream needs to be cleared automatically. If the buffer is full, an exception will occur ). The default value is true.

Isthreadsafe = "True | false"
It mainly tells JSP Container that the JSP webpage can process more than one request. The default value is true. If this value is set to false, singlethreadmodel will be used. Singlethreadmodel has declared in servlet 2.4 that it is not in favor of deprecate)

Info = "text"
It mainly indicates information about the JSP page.

Errorpage = "error_url"
Indicates that if an exception occurs, the webpage will be directed to that URL again.

Iserrorpage = "True | false"
Indicates whether the JSP page is a webpage that handles abnormal errors.

Contenttype = "ctinfo"
Mime Type and JSP webpage encoding method

Pageencoding = "ctinfo"
Indicates the encoding method of the JSP webpage.

Iselignored = "True | false"
Whether to execute or ignore the El expression in this JSP page. If it is true, the JSP Container ignores the El expression. If it is false, the El expression is executed.

Related Article

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.