-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathList3.jsp
More file actions
52 lines (49 loc) · 990 Bytes
/
List3.jsp
File metadata and controls
52 lines (49 loc) · 990 Bytes
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
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>리스트</title>
<style>
table,th,td{
border:1px solid black;
border-collapse:collapse;
}
.record{
cursor:pointer;
}
.record:hover{
background-color: #ecf0f1;
}
</style>
</head>
<body>
<div>
<a href="/write3">글쓰기</a>
</div>
<div>
<table>
<tr>
<td>no</td>
<td>제목</td>
<td>작성일</td>
</tr>
<c:forEach items="${list}" var="item">
<tr class="record" onclick="moveToDetail(${item.iboard});">
<td>${item.iboard }</td>
<td>${item.title}</td>
<td>${item.regdt }</td>
</tr>
</c:forEach>
</table>
</div>
<script>
function moveToDetail(iboard) {
//console.log('iboard:%d',iboard);
location.href = '/Detail3?iboard='+iboard;
}
</script>
</body>
</html>