- Request Object :
- GetParameter (String name) gets the data submitted by the form
- Getparamegernames () gets all parameter names submitted by the client
- GetAttribute (String name) Gets the property value specified by name
- Getattributenames get a collection of names for all properties of the request object
- GetSession (Boolean Create) gets the HttpSession object
- Response Objects : objects are used to respond dynamically to requests from clients, sending data to clients
- Getcharacterencoding () returns the character encoding format for the response
- Getoutputstream () returns the output stream of the response
- Getwriter () Returns an object that can output characters to the client
- Session Object : Open the browser from a client and connect to the server to start, to the client close the browser to leave the end of this server, the entire stage is called a session. Session objects can be used to save the user's conversation state.
- Exception Object : Used to handle errors and exceptions that occur in JSP pages to help us understand and work with error messages on the page
- Page Object : Is the current JSP page book, similar to this in Java
- GetClass () Gets the class of the Page object
- Hashcode () Gets the hash code of the Page object
- Equal (object obj) determines whether the Page object is equal to obj in the parameter
- Copy (object obj) copies this page object into the specified object
- Clone () Clones the current Page object
- PageContext object : Used to manage access to already named objects in a specially visible part of the JSP
- Application Object : Realize the sharing of data between users, can hold global variables
- Config object : Used to get server initialization configuration parameters
- Getservletcontext () Gets the current servlet context
- Getinitparameter (String name) Gets the value of the specified initial parameter
- Getinitparameternames () Gets the value of all initial parameters
- Getservletname () Gets the current servlet name
- Out object : Used to output various data to the client
- Print ()/println () outputs various types of data
- Clearbuffer () Clears the buffer's data and writes the data to the client
- Clear () Clears the buffer's data, but does not write data to the client
- Close () closes the output stream
The Java object corresponding to the JSP built-in object
JSP built-in objects |
Java objects in a servlet |
Request |
HttpServletRequest |
Response |
HttpServletResponse |
Session |
HttpSession |
exception |
Throwable |
Page |
This |
PageContext |
PageContext |
Application |
ServletContext |
Config |
ServletConfig |
Out |
JspWriter |
JSP nine large built-in objects and servlet Java objects