You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
1.0 KiB

<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head><title>添加学生信息</title></head>
<body>
<form action="studentManage?action=addStudent" method="post">
<p>请输入学生信息</p>
ID<input type="text" name="id" /><br>
学号<input type="text" name="sno" />
姓名<input type="text" name="name" /><br>
年龄<input type="text" name="age" />
专业<input type="text" name="major" /><br>
<input type ="submit" value="确定"/>
<input type="reset" value="重置"/></form>
${msg}<hr/>
<table>
<tr><td>ID</td><td>学号</td><td>姓名</td><td>年龄</td><td>专业</td><td>删除</td><td>修改</td></tr>
<c:forEach var="s" items="${studentList }">
<tr>
<td>${s.id }</td>
<td>${s.studentNo }</td><td>${s.studentName}</td>
<td>${s.sage }</td><td>${s.major}</td>
<td><a href="studentManager?action=delete&id=${s.id} ">删除</a></td>
<td><a href="studentManager?action=edit&id=${s.id} ">修改</a></td>
</tr>
</c:forEach>
</table></body></html>