-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathstudentUpdate.jsp
69 lines (65 loc) · 2.29 KB
/
studentUpdate.jsp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<%@ page language="java" import="java.util.*,org.fmz.model.Student" pageEncoding="utf-8"%>
<%@ page import="org.fmz.dao.StudentDAO"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>更新学生信息</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<script type="text/javascript" src="js/stupdate.js"></script>
<style type="text/css">
span{color:red;}
.form-signin .form-signin-heading,.form-signin .checkbox {
margin-bottom: 10px;
}
.form-signin input[type="text"],.form-signin input[type="password"] {
font-size: 16px;
height: auto;
margin-bottom: 15px;
padding: 7px 9px;
}
.form-signin {
max-width: 550px;
padding: 19px 29px 29px;
margin:0 auto;
background-color: #fff;
border: 1px solid #e5e5e5;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
-moz-box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}
</style>
</head>
<body>
<form class="form-signin" action="stupdate" method="post" onSubmit="return checkstId() && checkstDept() && checkstName()">
学号:
<input type="text" name="stId" value="${student.stId }" readonly="readonly" class="input">
<br>
姓名:
<input class="input" type="text" name="stName" value="${student.stName }"
onblur="checkstName()" onFocus="clearstName()" >
<span id="stName1"></span>
<br>
系别:
<input class="input" type="text" name="stDept" value="${student.stDept }" onblur="checkstDept()" onFocus="clearstDept()" >
<span id="stDept1"></span>
<br>
<input type="submit" value="提交" class="btn btn-primary">
<input type="button" class="btn btn-success" onclick="window.location.href='main.jsp'" value="返回">
</form>
</body>
</html>