<%@ page contentType="text/html;charset=GBK" %>
<html>
<head>
<title>使用JavaBean、设置和获取Bean的属性</title>
</head>
<body>
<jsp:useBean id="bean" scope="page" class="myBean.NameBean" />
<jsp:setProperty name="bean" property="name" value="Tom Bruce" />
<br>Full name:
<jsp:getProperty name="bean" property="name" />
<br>First name:
<%
	out.print(bean.firstName());
%>
<p>
</body>
</html>