<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.