<%@ page language="java" contentType="text/html; charset=EUC-KR" pageEncoding="EUC-KR"%>
<%@ page import="net.ion.board.Manger.SiBoardMgr" %>
<%@ page import="net.ion.board.bean.SiBoardBean" %>
<%
int id = Integer.parseInt(request.getParameter("num"));
SiBoardMgr mgr = SiBoardMgr.getInstance();
SiBoardBean bean = mgr.edit(id);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
<title>게시판 수정</title>
</head>
<body>
<form action="update.jsp" method="post">
<input type="text" name="board_num" value="<%= id %>">
<table border="1">
<tr>
<td>이름 </td>
<td><input type="text" name="name" value="<%= bean.getName() %>" size="10"></input></td>
</tr>
<tr>
<td>암호 </td>
<td><input type="password" name="password" size="10"><br>
암호가 동일해야 수정이 가능함
</td>
</tr>
<tr>
<td>제목 </td>
<td><input type="text" name="title" value="<%= bean.getTitle() %>" size="30"></input></td>
</tr>
<tr>
<td>내용 </td>
<td><textarea name="content" rows="5" cols="50"><%= bean.getContent() %></textarea></td>
</tr>
<tr>
<td><input type="submit" value="수정하기" ></input></td>
</tr>
</table>
</form>
</body>
</html>
댓글 없음:
댓글 쓰기