|
리비전 5, 1.0 kB
(mefour에 의해 체크인됨, 16 년 전)
|
--
|
- svn:mime-type 속성이
text/plain (으)로 설정되어있습니다.
|
| Line | |
|---|
| 1 |
<%@ page language="java" contentType="text/html; charset=EUC-KR" |
|---|
| 2 |
pageEncoding="EUC-KR"%> |
|---|
| 3 |
<% |
|---|
| 4 |
PollService service = new PollService(); |
|---|
| 5 |
ArrayList<Poll> list = service.getList(); |
|---|
| 6 |
%> |
|---|
| 7 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
|---|
| 8 |
<%@page import="net.okjsp.poll.PollService"%> |
|---|
| 9 |
<%@page import="java.util.ArrayList"%> |
|---|
| 10 |
<%@page import="net.okjsp.poll.Poll"%><html> |
|---|
| 11 |
<head> |
|---|
| 12 |
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR"> |
|---|
| 13 |
<title>설문목록</title> |
|---|
| 14 |
</head> |
|---|
| 15 |
<body> |
|---|
| 16 |
<h1 align="center" style="font-size:50px; color:#0000ff">설문목록</h1> |
|---|
| 17 |
<ul> |
|---|
| 18 |
<% |
|---|
| 19 |
for(int i = 1; i <= list.size(); i++) { |
|---|
| 20 |
Poll poll = list.get(list.size() - i); |
|---|
| 21 |
%> |
|---|
| 22 |
<li> |
|---|
| 23 |
<a href="view.jsp?pollId=<%= poll.getId() %>"><%= poll.getQuestion() %></a> |
|---|
| 24 |
</li> |
|---|
| 25 |
<% |
|---|
| 26 |
} |
|---|
| 27 |
if (list.size() == 0) { |
|---|
| 28 |
%><li>등록된 설문이 없습니다.</li> |
|---|
| 29 |
<% |
|---|
| 30 |
} |
|---|
| 31 |
%> |
|---|
| 32 |
|
|---|
| 33 |
</ul> |
|---|
| 34 |
<input type="button" value="설문등록" |
|---|
| 35 |
onclick="document.location.href='inputPoll.jsp'"></input> |
|---|
| 36 |
</body> |
|---|
| 37 |
</html> |
|---|