<html>
<head>
<title>Using gradStudentBean</title>
</head>
<body>
<h1><center>   Using gradStudentBean </center></h1>
<font size="+1"><b>
<jsp:useBean id="a_student"   class="mybeans.gradStudentBean" scope="page"> </jsp:useBean>
 <jsp:setProperty name="a_student" property="name"
                    value="Sam Smith"/>
   <jsp:setProperty name="a_student" property="year" 
                    value="Two"/>
   <jsp:setProperty name="a_student" property="testgrade" 
                    value="96"/>
   <jsp:setProperty name="a_student" property="program" 
                    value="Math/CS"/>

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

use_gradStudentBean.jsp