StudyJSP - jsp3_response - responseTest2_form.jsp

모쿠모쿠·2022년 6월 17일

JSP

목록 보기
43/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>responseTest2_form.jsp</h1>
    <!-- form 태그를 사용하여 requestPro2.jsp 페이지로 POST 방식 요청 -->
    <!-- 아이디(name 속성 : id), 패스워드(name 속성 : passwd) 입력, submit 버튼(로그인) 생성 -->
    <form action="responseTest2_result.jsp" method="get">
    	<table border="1">
        	<tr>
            	<th>아이디</th><td><input type="text" name="id"></td>
            </tr>
            <tr>
            	<ht>패스워드</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

responseTest2_form.jsp

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

0개의 댓글