JavaBean Request life cycle

Source: Internet
Author: User

Request

Within the request scope, the valid range of the JavaBean object is:

① current JSP page for customer request access
② and the current JSP page share the same requested page, including the <%@ include%> directive and other JSP files included with the <jsp:forward> tag.
③ the JavaBean object ends the life cycle when all JSP pages that share the same customer request are executed and the response is sent back to the client.

The JavaBean object is saved as an attribute in the HttpServletRequest object, the property name is JavaBean ID, the property value is a JavaBean object, so the JavaBean object can be obtained in the same request scope as follows:

id=class="Com.itzhai.bean.User" scope="Request"/>user user= (User) Request.getattribute (" User ");   

JavaBean Request life cycle

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.