previous
|
start
|
next
Encapsulating Computations in JavaBeans
A JSP page gives you access to a JavaBean's properties without having to write Java code.
To use a bean in a JSP page, use the
jsp:useBean
directive
Give a name to the object and specify the class name of the bean
<jsp:useBean id ="user" class="PersonBean"/>
This directive invokes the default constructor of the PersonBean class
It makes an object with name user
previous
|
start
|
next