본문 바로가기

콩's EDUCATION/콩's JSP&SERVLET

JSP 들어가기

1. 작동 환경


클라이언트  (ex. id, pass, 정보)


1. loginfrom.html 요청

2. 로그인 요청


웹서버


3. 연동


DATABASE



**기본적인 로그인 form


<!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>Login Form</title>

<style>

table,tr,td {margin:1px;padding:1px;border:1px solid gray;}

</style>

</head>

<body>

<form action="login" method="post">

<table>

<tr><td>아이디</td><td><input type="text" name="userid" id="userid"></td></tr>

<tr><td>패스워드</td><td><input type="password" name="userpwd" id="userpwd"></td></tr>

<tr><td colspan="2"><input type="submit" value="로그인">

<input type="reset" value="취소"></td></tr><tr></tr><tr></tr>

</table>

</body>

</html>


method의 get 과 post 활용법을 파악한다.