JSP built-in object (1)

Source: Internet
Author: User

Today I learnedJsp (preferred for SUN Enterprise applications). What is an object?In object-oriented programming, an object is a variable composed of operations and data as a complete object.

Objects are based on specific models. In objects, customers use object services to access object data through interfaces of a set of methods or related functions, then the client can call these methods to perform certain operations.

Jsp (preferred for SUN Enterprise applications)The following built-in objects are available:Request,Response,Out,Session,Pagecontext,Application,Config,Page.

◆Request [Request]Object

RequestThe object is used to accept all information in all requests sent from the browser to your server.

AndRequestIsHttpServletRequestClass. PassGetParameterMethod.RequestParameter, throughGET,POST,HEADAnd other methods.RequestType, throughCookies,RefererAnd so on.HTTPHeader.

◆Response [Response]Object

ResponseAn object is used to send data to the client browser. You can use this object to send server data to the client browser.

AndResponseIsHttpServletResponseClass.

◆OutObject

OutThe object is used to output data to the client.

◆Session [Work]Object

SessionObjects are used to save information for each user separately, so as to track the user's

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.