Explain the uses of <jsp:usebean> tag.

Report
Question
11 views

Please explain why do you think this question should be reported?

Report Cancel

<jsp:useBean>
id="beanInstName"
scope= "page | application"
class="ABC.class"  type="ABC.class"
</jsp:useBean>
1
2
3
4
5
6
7
8
9
<jsp:useBean>
 
id="beanInstName"
 
scope= "page | application"
 
class="ABC.class"  type="ABC.class"
 
</jsp:useBean>
This tag creates an instance of java bean. It firstly tries to find if bean instance already exist and assign stores a reference in the variable. Type is also specified; otherwise it instantiates from the specified class storing a reference in the new variable.
 

Please follow and like us:

About the Author