Built-in objects in JSP (9)
Object Name object type range |
Pagecontext javax. servlet. jsp. pagecontext page |
Page javax. servlet. jsp. httpjsppage |
Request pipeline X. servlet. jsp. httpservletrequest request |
Response javax. servlet. jsp. httpservletresponse page |
Session javax. servlet. httpsessio session |
Application javax. servlet. servletcontext Application |
Out javax. servlet. jsp. jspwriter page |
Config javax. servlet. servletconfig page |
Exception java. Lang. throwable page |
**************************************** ********************************
Built-in objects are objects that can be directly used in JSP without being declared. jsp has the following built-in objects:
Request request indicates the httpservletrequest object. It contains information about browser requests and provides several useful methods for obtaining cookie, header, and session data.
Response response indicates the httpservletresponse object, and provides several methods (such as cookies and header information) for setting the response to the browser)
The out object is an instance of javax. jsp. jspwriter. It provides several methods for sending output results to the browser.
Pagecontext indicates a javax. servlet. jsp. pagecontext object. It is used to facilitate access to various namespaces and servlet-Related Object APIs, and encapsulates common servlet-related functions.
Session session indicates a requested javax. servlet. http. httpsession object. Session can store user status information
Application applicaton indicates a javax. servle. servletcontext object. This helps you find information about the servlet engine and Servlet environment.
Config config indicates a javax. servlet. servletconfig object. This object is used to access the initialization parameters of the servlet instance.
Page page indicates a servlet instance generated from the page.