Jsp:usebean creates a new object __js

Source: Internet
Author: User


<jsp:useBean> used to locate or sample a JavaBeans component.   <jsp:useBean> will first attempt to locate a bean instance, and if the bean does not exist, then <jsp:useBean> will sample from a class or template.   In order to locate or sample a bean,<jsp:usebean>, the following steps are gathered, in the following order: attempts to locate a bean by a given name and range.   The reference variable for this Bean object is named after the name you specify. If this bean is found, this reference will be stored in this variable.   If you also specify a type, the bean is also set to the appropriate type. If this bean is not found, it will be an example from the class you specified and store the reference in a new variable.   If the name of this class represents a template, then the bean is Java.beans.Beans.instantiate sample (the object created except for some extra field fields, the rest is null). If <jsp:useBean> has an example (not positioned) of the bean, and there are elements in <jsp:useBean> and </jsp:useBean>, then the code will be executed.

Related Article

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.