Four types of servlet domain objects and servlet4 domain objects

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.