<-jsp:getProperty name="beanInstanceName" property="propertyName" />
Example
<-jsp:useBean id="calendar" scope="page" class="employee.Calendar" />
Calendar of <-jsp:getProperty name="calendar" property="username" />
Description
The
The
* You cannot use
* You can use
Attributes
# name="beanInstanceName"
The name of an object (usually an instance of a Bean) as declared in a
# property="propertyName"
The name of the Bean property whose value you want to display. The property is declared as a variable in a Bean and must have a corresponding getter method (for more information on declaring variables and writing getter methods in Beans, see the JavaBeans API Specification).
No comments:
Post a Comment