With JSP the tags get translated into
java code
<jsp:useBean id="myBean" class="com.mypackage.MyBean"/>
gets roughly translated into java as
So you get a scriptlet variable declared on the page.
If the value already exists as an attribute, it will use that value, otherwise it creates a new object.
Full details available in the
jsp reference