| bean | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Description | This tag makes the specified bean object available
to the page. It is essentially the same as <jsp:useBean>except that it
interoperates with the other bean tags in this tag library. | ||||||||||||
| Tag Body | Empty | ||||||||||||
| Restrictions | If the nameattribute is not specified then uses a parentbeantag to locate the bean on which to operate. Thetypeattribute specifies the java class name of the object to use or create. | ||||||||||||
| Attributes | This tag has the following attributes: 
 | ||||||||||||
| Properties | All the bean properties of the bean type created are available. | ||||||||||||
| Example(s) | <%-- make a date available --%> <util:bean type="java.util.Date"> date = <util:get/> </util:bean> <%-- make a named date available --%> <util:bean id="date" type="java.util.Date"/> date = <util:get name="date"/> </util:bean> | ||||||||||||