<html>
<head>
<title>Using a SQL Bean</title>
</head>
<body>

<h1><center>   Using a SQL Bean </center></h1>
<font size="+1"><b>

<jsp:useBean id="the_student"   class="mybeans.SQLBean" scope="page"> </jsp:useBean>
 <jsp:setProperty name="the_student" property="all"  value="Joe Jones"/>



<p>The the_student Name is: 
   <jsp:getProperty name="the_student" property="name"/>
</p>
<p>The Year is: 
   <jsp:getProperty name="the_student" property="year"/>
</p>
<p>The Entrance Examination Score: 
   <jsp:getProperty name="the_student" property="testgrade"/>
</p>
<p>The SQL Whole Story: 
   <jsp:getProperty name="the_student" property="all"/>
</p>
</b></font>
</body>
</html>

use_SQLBean.jsp