Back Ground

게시판 만들기 - JSP BoardCheckPass.jsp 비밀번호 입력 화면을 위한 JSP 페이지 (View) 본문

JSP/게시판 만들기

게시판 만들기 - JSP BoardCheckPass.jsp 비밀번호 입력 화면을 위한 JSP 페이지 (View)

Back 2016. 6. 22. 15:34
JSP BoardCheckPass.jsp 비밀번호 입력 화면을 위한 JSP 페이지 (View)

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!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 type="text/javascript" src="js/board.js"></script>
</head>
<body>
    <div>
        <h1>비밀번호 확인</h1>
        <form action="BoardServlet" name="frm" method="get">
            <input type="hidden" name="command" value="board_check_pass">        
            <input type="hidden" name="num" value="${param.num}">
            
                <!--boardView.jsp의  "게시글 수정" 부분에
                onclick="open_win('BoardServlet?command=board_check_pass_form&num=${board.num}')
                부분에서 num값을 보낸것을 param(.$.{.}.EL에서 키를 지정하지않은 파라메타)으로 받는다 
                /> -->
        
            <table>
                <tr>
                    <th> 비밀번호 </th>
                    <td>
                        <input type="password" name="pass" size="20">
                    </td>
                </tr>
            </table>
            <input type="submit" value="확인" onclick="return passCheck()">
            ${message}

            <!--  BoardCheckPassAction에 request영역의 
            setAttribyte로 ("message","비밀번호가 틀렸습니다.")의 키와 값을  
             주어 "비밀번호가 틀렸습니다 출력"-->

        </form>
    </div>
</body>
</html>


Comments