<%@ page contentType="text/html;charset=GB2312" %>
<HTML>
<BODY bgcolor=cyan><Font size=4>
   <jsp:useBean id="zhang" class="ccc.Worker" scope="page" >
   </jsp:useBean>
<jsp:setProperty  name= "zhang"  property="name" value="张小三"  />
<P>名字是：
<jsp:getProperty  name= "zhang"  property="name"  />
<jsp:setProperty  name= "zhang"  property="number" value="1999001"  />
<P>工号是：
<jsp:getProperty  name= "zhang"  property="number"  />
<% double height=1.70;
%>
<jsp:setProperty  name= "zhang"  property="height" value="<%=height+0.05%>"  />
<P>身高是：
<jsp:getProperty  name= "zhang"  property="height"  />
米
<jsp:setProperty  name= "zhang"  property="weight" value="67.65"  />
<P>体重是：
<jsp:getProperty  name= "zhang"  property="weight"  />
公斤
</FONT>
</BODY>
</HTML>