forked from KevinXieToronto/SpringMVC-Spring-MyBatis
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdateUser.jsp
More file actions
51 lines (49 loc) · 1.01 KB
/
Copy pathupdateUser.jsp
File metadata and controls
51 lines (49 loc) · 1.01 KB
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
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
<title>My JSP 'updateUser.jsp' starting page</title>
</head>
<body>
<form action="<%=path %>/muserController/updateUser.do" method="POST">
<input type="hidden" name="id" value="${user.id }">
<table>
<tr>
<td>
name:
</td>
<td>
<input type="text" name="name" value="${user.name }">
</td>
</tr>
<tr>
<td>
age:
</td>
<td>
<input type="text" name="age" value="${user.age }">
</td>
</tr>
<tr>
<td>
address:
</td>
<td>
<input type="text" name="address" value="${user.address }">
</td>
</tr>
<tr>
<td>
<input type="submit" value="Update">
</td>
<td>
<input type="reset" value="Reset">
</td>
</tr>
</table>
</form>
</body>
</html>