<%@ page contentType="text/html;charset=GBK" %>
<%@ page import="myBean.User"%>
<html>
<head>
<title>使用JavaBean从Servlet传递数据到JSP</title>
</head>
<body>
<%
	User user = (User)session.getAttribute("user");
	out.print("姓名："+user.getName() +"<BR>年龄："+ user.getAge());
%>
</body>
</html>