<%@page import="board.dao.BoardDAO"%> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <% int seq = Integer.parseInt(request.getParameter("seq")); int pg = Integer.parseInt(request.getParameter("pg")); BoardDAO dao = new BoardDAO(); BoardDTO dto = dao.boardView(seq); %> boardModifyForm.jsp

글수정


"> <%@page import="board.dao.BoardDAO"%> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <% int seq = Integer.parseInt(request.getParameter("seq")); int pg = Integer.parseInt(request.getParameter("pg")); BoardDAO dao = new BoardDAO(); BoardDTO dto = dao.boardView(seq); %> boardModifyForm.jsp

글수정


"> <%@page import="board.dao.BoardDAO"%> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <% int seq = Integer.parseInt(request.getParameter("seq")); int pg = Integer.parseInt(request.getParameter("pg")); BoardDAO dao = new BoardDAO(); BoardDTO dto = dao.boardView(seq); %> boardModifyForm.jsp

글수정


">
<%@page import="board.dto.BoardDTO"%>
<%@page import="board.dao.BoardDAO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
int seq = Integer.parseInt(request.getParameter("seq"));
int pg = Integer.parseInt(request.getParameter("pg"));

BoardDAO dao = new BoardDAO();
BoardDTO dto = dao.boardView(seq);

%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>boardModifyForm.jsp</title>
<style type="text/css">
table, th, td {
	border: 1px solid black;
	border-collapse: collapse;
}
td {
	text-align: center;
}
</style>
<script type="text/javascript" src="../script/boardscript.js?after"></script>
</head>
<body>
	<h1>글수정</h1>
	<br>
	<form name="boardmodifyForm" action="boardmodify.jsp" method="post">
		<input type="hidden" name="seq" value="<%=seq %>"/>
		<input type="hidden" name="pg" value="<%=pg %>"/>
		<table>
			<tr>
				<td colspan="3">
					<label>글제목 : </label>
					<input type="text" name="subject" value="<%=dto.getSubject() %>">
				</td> <!-- 제목 -->
			</tr>
			<tr>
				<td width="200px">글번호 : <%=dto.getSeq() %></td>
				<td width="200px">작성자 : <%=dto.getName() %></td>
				<td width="200px">조회수 : <%=dto.getHit() %></td>
			</tr>
			<tr>
				<td colspan="3" height="300px" valign="top">
					<label>글 내용 : </label>
					<textarea rows="20" cols="52" name="content"><%=dto.getContent() %></textarea>> <!-- 내용 -->
				</td>
			</tr>
			<tr>
				<td colspan="3" align="center">
					<input type="button" value="수정 완료" onclick="checkBoardModify()"/>
				</td>
			</tr>
		</table>
	</form>
</body>
</html>