What are the built-in objects for JSPs? What are the roles? (Minimum of three)

Source: Internet
Author: User

What are the built-in objects for JSPs? What are the roles? (Minimum of three)

Answer:

1) The request represents the HttpServletRequest object. It contains information about browser requests and provides several useful methods for obtaining cookies, headers, and session data. 2) response represents the HttpServletResponse object and provides several methods for setting the response to the browser (such as cookies, header information, etc.). 3) The Out object is an instance of Javax.jsp.JspWriter and provides several methods that you can use to echo the output to the browser. 4) PageContext represents a Javax.servlet.jsp.PageContext object. It is an API for easy access to a wide range of namespaces, servlet-related objects, and a way to wrap generic servlet-related functionality. 5) The session represents a requested Javax.servlet.http.HttpSession object. Session can store the user's status information. 6) application represents a Javax.servle.ServletContext object. This helps to find information about the servlet engine and the servlet environment. 7) config represents a Javax.servlet.ServletConfig object. This object is used to access the initialization parameters of the servlet instance

Number. 8) page represents a servlet instance that is generated from this page. 9) exception for error pages, no catch exceptions

What are the built-in objects for JSPs? What are the roles? (Minimum of three)

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.