页面提交插入到数据库 1.jsp
<%@ page language="java" import="java.util.*" contentType="text/html" pageEncoding="utf-8"%>
<html>
<head>
<title>添加任何学生的提交页面</title>
</head>
<body>
<form action="insert_stu_2.jsp" method="post">
<table border="0" width="238" height="252" >
<tr><td>学号<input type="text" name="id"></td></tr>
<tr><td>姓名<input type="text" name="name"></td></tr>
<tr><td>性别<input type="text" name="sex"></td></tr>
<tr><td>年龄<input type="text" name="age"></td></tr>
<tr><td>体重<input type="text" name="weight"></td></tr>
<tr><td>身高<input type="text" name="hight"></td></tr>
<tr align="center">
<td colspan="2"><input type="submit" value="提 交">
<input type="reset" value="取 消"></td></tr>
</table>
</form>
</body>
</html>