-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuserUpdate.jsp
More file actions
69 lines (69 loc) · 2.12 KB
/
userUpdate.jsp
File metadata and controls
69 lines (69 loc) · 2.12 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<%@ page language="java" contentType="text/html; charset=EUC-KR"
pageEncoding="EUC-KR"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
<title>사용자 정보 수정</title>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<h2 class="text-center">사용자 정보 수정</h2>
<div>
<form method="post" action="updateUser.do">
<input type="hidden" name="userId" value="${map.user.userId}" />
<table class="table table-bordered table table-hover">
<tr>
<td>아이디 :</td>
<td>${map.user.userId}</td>
</tr>
<tr>
<td>이름 :</td>
<td><input type="text" name="name" value="${map.user.name}" />
</td>
</tr>
<tr>
<td>성별 :</td>
<td>
<c:forEach items='${map.genderList}' var='genderName'>
<c:choose>
<c:when test="${genderName eq map.user.gender}">
<input type="radio" name="gender" value="${genderName}"
checked="checked">${genderName}
</c:when>
<c:otherwise>
<input type="radio" name="gender" value="${genderName}">${genderName}
</c:otherwise>
</c:choose>
</c:forEach>
</td>
</tr>
<tr>
<td>거주지 :</td>
<td>
<select name="city">
<c:forEach items='${map.cityList}' var='cityName'>
<c:choose>
<c:when test="${cityName eq map.user.city}">
<option value="${cityName}" selected>${cityName}</option>
</c:when>
<c:otherwise>
<option value="${cityName}">${cityName}</option>
</c:otherwise>
</c:choose>
</c:forEach>
</select>
</td>
</tr>
<tr>
<td colspan="2" class="text-center"><input type="submit" value="수정" /></td>
</tr>
</table>
</form>
</div>
</div>
</body>
</html>