-
Notifications
You must be signed in to change notification settings - Fork 0
/
guestbooks.jsp
39 lines (36 loc) · 1.32 KB
/
guestbooks.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
<%@ page contentType="text/html; charset=utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<html>
<head>
<title>방명록</title>
<style>
.guestbook {
padding: 5px 0px 5px 5px;
margin-bottom: 5px;
border-bottom: 1px solid #efefef;
font-size: 12px;
}
</style>
</head>
<body>
<div class="guestbooks"></div>
<c:forEach var="guestbook" items="${list}">
<div class="guestbook">
<div> <label>id : </label> ${guestbook.id}</div>
<div> <label>name : </label> ${guestbook.name}</div>
<div> <p>${guestbook.content}</p></div>
<div> <label>regdate : </label> ${guestbook.regdate}</div>
</div>
</c:forEach>
</div>
<br><br><br>
<form method="post" action="guestbooks/write">
이름 : <input type="tex" name="name"><br>
내용 :
<textarea name="content" cols="50" rows="5"></textarea><br>
<input type="submit" value="확인">
</form>
</body>
</html>