Built-in objects in JSP (9)

Source: Internet
Author: User

Built-in objects in JSP (9)

Object Name object type range
Pagecontext javax. servlet. jsp. pagecontext page
Page javax. servlet. jsp. httpjsppage
Request pipeline X. servlet. jsp. httpservletrequest request
Response javax. servlet. jsp. httpservletresponse page
Session javax. servlet. httpsessio session
Application javax. servlet. servletcontext Application
Out javax. servlet. jsp. jspwriter page
Config javax. servlet. servletconfig page
Exception java. Lang. throwable page

**************************************** ********************************

Built-in objects are objects that can be directly used in JSP without being declared. jsp has the following built-in objects:

Request request indicates the httpservletrequest object. It contains information about browser requests and provides several useful methods for obtaining cookie, header, and session data.

Response response indicates the httpservletresponse object, and provides several methods (such as cookies and header information) for setting the response to the browser)

The out object is an instance of javax. jsp. jspwriter. It provides several methods for sending output results to the browser.

Pagecontext indicates a javax. servlet. jsp. pagecontext object. It is used to facilitate access to various namespaces and servlet-Related Object APIs, and encapsulates common servlet-related functions.

Session session indicates a requested javax. servlet. http. httpsession object. Session can store user status information

Application applicaton indicates a javax. servle. servletcontext object. This helps you find information about the servlet engine and Servlet environment.

Config config indicates a javax. servlet. servletconfig object. This object is used to access the initialization parameters of the servlet instance.

Page page indicates a servlet instance generated from the page.

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.