jsp in nine hidden objects

In JSP, a total of nine implicit objects, the nine objects I can use directly in the JSP.

As it has been for the nine implicit objects are declared and assignments, so it can be used directly in the JSP in service method.
- pageContext
type: PageContext
representatives: the context of the current page
action: you can get to other hidden objects on the page, but it is a domain object.

- request
types: the HttpServletRequest
Representative: request
action: the user can send a request for information, it is also a domain object.

- session
type: the HttpSession
Representative: current session
role: as domain objects, to share data.

- application
type: ServletContext
representatives: representative of the WEB application
role: JavaWeb is the largest domain objects.


- page
Type: Object There service methods following code Object page = this;
Representative: represents the current JSP object

- response
type: the HttpServletResponse
behalf of: in response to
action: send a response message to the browser

- out
type: the JspWriter
representative of: output stream
effect : You can output the page content

- config
type: ServletConfig
current configuration JSP: the representative of
the role: You can get the label Servlet initialization parameters


- Exception
type: Throwable
representatives: Exception information
role: Gets the exception page

As it has been for the nine implicit objects are declared and assignments, so it can be used directly in the JSP in service method.
- pageContext
type: PageContext
representatives: the context of the current page
action: you can get to other hidden objects on the page, but it is a domain object.

- request
types: the HttpServletRequest
Representative: request
action: the user can send a request for information, it is also a domain object.

- session
type: the HttpSession
Representative: current session
role: as domain objects, to share data.

- application
type: ServletContext
representatives: representative of the WEB application
role: JavaWeb is the largest domain objects.


- page
Type: Object There service methods following code Object page = this;
Representative: represents the current JSP object

- response
type: the HttpServletResponse
behalf of: in response to
action: send a response message to the browser

- out
type: the JspWriter
representative of: output stream
effect : You can output the page content

- config
type: ServletConfig
current configuration JSP: the representative of
the role: You can get the label Servlet initialization parameters


- Exception
type: Throwable
representatives: Exception information
role: Gets the exception page

Guess you like

Origin www.cnblogs.com/yuanjl/p/11242555.html