<%@ 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>
<script type="text/javascript">
function send(f){ //send함수 만들기 form으로 화면이동
f.action ='/chapter17_mvc2/Controller';
f.submit();
}
</script>
</head>
<body>
<div>
<form method="post">
<table>
<tbody>
<tr>
<td>이름</td>
<td><input type="text" name="name"></td>
</tr>
<tr>
<td>나이</td>
<td><input type="number" name="age"></td>
</tr>
<tr>
<td>연락처</td>
<td><input type="text" name="phone"></td>
</tr>
<tr>
<td>주소</td>
<td><input type="text" name="addr"></td>
</tr>
<tr>
<td>자기소개</td>
<td>
<textarea rows="3" cols="50" name="self"></textarea>
</td>
</tr>
<tr>
<td colspan="2">
<input type="button" value="전송" onclick="send(this.form)">
</td>
</tr>
</tbody>
</table>
</form>
</div>
</body>
</html>