StudyJSP - jsp2_request - requestForm2.jsp

모쿠모쿠·2022년 6월 16일

JSP

목록 보기
36/151
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<h1>requestForm2.jsp</h1>
    <!-- form 태그를 사용하여 requestPro2.jsp 페이지로 POST 방식 요청 -->
    <!-- 아이디(name 속성 : id), 패스워드(name 속성 : passwd) 입력, submit 버튼(로그인) 생성 -->
    <form action="requestPro2.jsp" method="get">
    	<table border="1">
        	<tr>
            	<th>아이디</th><td><input type="text" name="id"></td>
            </tr>
            <tr>
            	<th>패스워드</th><td><input type="password" name="passwd"></td>
            </tr>
            <tr>
            	<td colspan="2"><input type="submit" value="로그인"></td>
            </tr>
        </table>
    </form>
</body>
</html>

<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>

Insert title here

requestForm2.jsp

아이디
패스워드
profile
Hello, Velog!

0개의 댓글