Back Ground

게시판 만들기 - JSP boardUpdate.jsp 게시글 수정 화면을 위한 JSP 페이지 (View) 본문

JSP/게시판 만들기

게시판 만들기 - JSP boardUpdate.jsp 게시글 수정 화면을 위한 JSP 페이지 (View)

Back 2016. 6. 22. 22:08
JSP boardUpdate.jsp 게시글 수정 화면을 위한 JSP 페이지 (View)

<%@ 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>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script src="js/board.js"></script>
</head>
<body>
    <div id="wrap" >
        <h1>게시글 수정</h1>
        <form name="frm" method="post" action="BoardServlet">
            <input type="hidden" name="command" value="board_update">
            <input type="hidden" name="num" value="${board.num}">
            
            <table>
                <tr>
                    <th>작성자</th>
                    <td><input type="text" name="name" value="${board.name}"> * 필수</td>
                </tr>
                <tr>
                    <th>비밀번호</th>
                    <td><input type="password"  name="pass"> * 필수 (게시물 수정 삭제시 필요합니다.)</td>
                </tr>
                <tr>
                    <th>이메일</th>
                    <td><input type="text" maxlength="50" name="email" value="${board.email}"></td>
                </tr>
                <tr>
                    <th>제목</th>
                    <td><input type="text" name="title" value="${board.title}"></td>
                </tr>
                <tr>
                    <th>내용</th>
                    <td><textarea rows="15" cols="70" name="content">${board.content}</textarea></td>
                </tr>
            </table>
            <input type="submit" value="등록" onclick="return boardCheck()">
            <input type="reset"  value="다시작성">
            <input type="button" value="목록" onclick="location.href='BoardServlet?command=board_list'">
        </form>
    </div>
</body>
</html>


Comments