code045.jsp
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>javaBean应用</title>
</head>
<body>
<form action="code046.jsp" method="post">
<table border="1" style="border-collapse:collapse;">
<tr>
<td colspan="2"><strong>添加用户信息</strong></td>
</tr>
<tr>
<td>姓名:</td>
<td><input type="text" name="name" id="name"></td>
</tr>
<tr>
<td>年龄:</td>
<td><input type="text" name="age" id="age"></td>
</tr>
<tr>
<td>性别:</td>
<td><input type="text" name="sex" id="sex"></td>
</tr>
<tr>
<td>住址:</td>
<td><input type="text" name="address" id="address"></td>
</tr>
<tr>
<td colspan="2"><input type="submit" name="submit" value="添加"></td>
</tr>
</table>
</form>
</body>
</html>