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.