<%@page import="java.util.ArrayList"%>
<%@page import="com.smhrd.model.BoardDAO"%>
<%@page import="com.smhrd.model.BoardVO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Forty by HTML5 UP</title>
<meta charset="utf-8"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!--[if lte IE 8]><script src="assets/js/ie/html5shiv.js"></script><![endif]-->
<link rel="stylesheet" href="assetsBoard/css/main.css" />
<link rel="stylesheet" href="assetsBoard/css/board.css" />
<!--[if lte IE 9]><link rel="stylesheet" href="assets/css/ie9.css" /><![endif]-->
<!--[if lte IE 8]><link rel="stylesheet" href="assets/css/ie8.css" /><![endif]-->
</head>
<body>
<%
request.setCharacterEncoding("UTF-8");
int num = Integer.parseInt(request.getParameter("num"));
BoardDAO dao = new BoardDAO();
BoardVO vo = dao.showDetail(num);
%>
<div id="board">
<table id="list">
<tr>
<td>제목</td>
<td><%=vo.getTitle() %></td>
</tr>
<tr>
<td>작성자</td>
<td><%=vo.getWriter() %></td>
</tr>
<tr>
<td>다운로드</td>
<td><a href="./file/<%= vo.getFilename()%>" download="sample">
<%=vo.getFilename() %>
</a>
</td>
</tr>
<tr>
<td colspan="2">내용</td>
</tr>
<tr>
<td><%=vo.getContent() %></td><br>
<td><img src="./file/<%= vo.getFilename()%>"/></td>
</tr>
<tr>
<td colspan="2"><a href="boardMain.jsp"><button>뒤로가기</button></a></td>
</tr>
</table>
</div>
<!-- Scripts -->
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/jquery.scrolly.min.js"></script>
<script src="assets/js/jquery.scrollex.min.js"></script>
<script src="assets/js/skel.min.js"></script>
<script src="assets/js/util.js"></script>
<!--[if lte IE 8]><script src="assets/js/ie/respond.min.js"></script><![endif]-->
<script src="assets/js/main.js"></script>
</body>
</html>
'BACK-END > JSP Servlet' 카테고리의 다른 글
[MessageSystem]DataBase (0) | 2022.07.15 |
---|---|
[MessageSystem]Model (0) | 2022.07.15 |
[MessageSystem]WriterBoard.jsp (0) | 2022.07.15 |
[MessageSystem]BoardMain.jsp (0) | 2022.07.15 |
[MessageSystem]Select.jsp (0) | 2022.07.15 |