今天重温练习了增删,效果还行
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>添加</title>
</head>
<body>
<%
Object message = request.getAttribute("message");
if (message != null && !"".equals(message)) {
%>
<script type="text/javascript">
alert("<%=request.getAttribute("message")%>"); //弹出对话框
</script>
<%
}
%>
<form action="servlet?method=addscore" method="post">
<table align="center">
<td><a href="teacher.jsp?">返回教师页面</a></td>
<tr><td>输入学生学号: <input type="text" name="stud_ID"></td></tr>
<tr><td>课程一成绩: <input type="text" name="class1"></td></tr>
<tr><td>课程二成绩: <input type="text" name="class2"></td></tr>
<tr><td>课程三成绩: <input type="text" name="class3"></td></tr>
<tr><td><input type="submit" value="添加"></td></tr>
</table>
</form>
</body>
</html>