-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheditStudentForm.jsp
61 lines (51 loc) · 1.35 KB
/
editStudentForm.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
<!DOCTYPE html>
<html>
<head>
<title>Edit Student</title>
<link type="text/css" rel="stylesheet" href="css/style.css">
<link type="text/css" rel="stylesheet" href="css/add-student-style.css">
</head>
<body>
<div id="wrapper">
<div id="header">
<h1>DZL Center</h1>
<h5>For Kids Who Can't Read Good</h5>
</div>
</div>
<div id="container">
<h3>Edit Student</h3>
<form action="StudentControllerServlet" method="POST">
<!-- Add hidden field to track studentID -->
<input type="hidden" name="action" value="EDIT" />
<input type="hidden" name="studentId" value="${THE_STUDENT.id}" />
<table>
<tbody>
<tr>
<td><label>First Name:</label></td>
<td><input type="text" name="firstName"
value="${THE_STUDENT.firstName}"/></td>
</tr>
<tr>
<td><label>Last Name:</label></td>
<td><input type="text" name="lastName"
value="${THE_STUDENT.lastName}"/></td>
</tr>
<tr>
<td><label>Email:</label></td>
<td><input type="text" name="email"
value="${THE_STUDENT.email}"/></td>
</tr>
<tr>
<td><label></label></td>
<td><input type="submit" value="Save" class="save" /></td>
</tr>
</tbody>
</table>
</form>
<div style="clear: both;"></div>
<p>
<a href="StudentControllerServlet">Back to List</a>
</p>
</div>
</body>
</html>