<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>이름입력</title>
</head>
<body>
이름을 입력하고 OK버튼을 누르세요 <br/>
<br>
<form action="Request_02.jsp" method="get">
이름:<input type="text" name="yourname">
<input type="submit" value="OK">
</form>
</body>
</html>
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>반갑습니다.</title>
</head>
<body>
<%
request.setCharacterEncoding("utf-8");
String name= request.getParameter("yourname");
%>
안녕하세요 <%=request.getParameter("yourname") %>님!<br/>
안녕하세요 <%=name%>님!<br/>
</body>
</html>