Four types of servlet domain objects and servlet4 domain objects
1. Objects targeting the current page
The Set object is only for the current page. You cannot access the set object on any other interface (for example, set a temporary object on the logon interface to obtain user information)
2. The object targets a request
The Set object is valid in one request. A request is simply understood as a hyperlink clicked by the user. When the user clicks for the second time, the browser sends a new request to the server, therefore, after one click, jsp is a request no matter how many servlets are redirected to the backend, the background can access the set objects on any interface that is redirected (for example, the logon interface transfers Login User information to other management interfaces)
3. Objects target a user
The Set object is valid on all pages of the same user. After a user logs on or does not log on, the browser starts once, no matter how many new web resources are entered in the browser interface, or how many hyperlinks are clicked, as long as they are always in a web application, all web resources (servlet, jsp, etc) you can access the set objects (such as displaying information of logged-on users on all interfaces of the website)
4. Target all users
The Set object is valid for this web application. Any browser or user can access the set object, which is equivalent to the global variables of the web application (such as the website renewal rate)