Talking about nine implicit objects in jsp, talking about jsp implicit objects

Source: Internet
Author: User

Talking about nine implicit objects in jsp, talking about jsp implicit objects

There are a total of nine implicit objects in JSP. I can use these nine objects directly in JSP.

Since the service method has declared and assigned values to the nine implicit objects, it can be directly used in JSP.

-PageContext

Type: PageContext

Representative: Context of the current page

Purpose: You can obtain other hidden objects on the page. It is also a domain object.

-Request

Type: HttpServletRequest

Representative: Request

Purpose: Obtain the request information sent by the user. It is also a domain object.

-Session

Type: HttpSession

Representative: current session

Role: it can be used as a domain object to share data.

-Application

Type: ServletContext

Representative: represents the entire WEB application

Role: it is the largest domain object in JavaWeb.

-Response

Type: HttpServletResponse

Representative: Response

Purpose: Send Response Information to the browser

-Out

Type: JspWriter

Representative: output stream

Purpose: Output content to the page

-Config

Type: ServletConfig

Representative: the configuration information of the current JSP

Purpose: You can obtain the initialization parameters in the Servlet tag.

-Page

Type: Object has the following code in the service method: Object page = this;

Representative: The current JSP object

-Exception

Type: Throwable

Representative: exception information

Purpose: Get an exception on the page

The Nine hidden objects in the above discussion jsp are all the content shared by the editor. I hope you can give us a reference and support the help house.

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.