<%@ page import="com.mahe666.entity.People" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<%
    People p1 = new People();
    p1.setId(1);
    p1.setName("马赫666");
    p1.setAge(3);
    p1.setAddress("哈尔滨");
%>

<jsp:useBean id="people" class="com.mahe666.entity.People" scope="session" />

<jsp:setProperty name="people" property="id" value="1"/>
<jsp:setProperty name="people" property="name" value="马赫666"/>
<jsp:setProperty name="people" property="age" value="3"/>
<jsp:setProperty name="people" property="address" value="哈尔滨"/>

编号：<jsp:getProperty name="people" property="id"/>
姓名：<jsp:getProperty name="people" property="name"/>
年龄：<jsp:getProperty name="people" property="age"/>
地址：<jsp:getProperty name="people" property="address"/>
</body>
</html>
