form1.html

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">

<title>해커 가입</title>

</head>

<body>

해킹할 ID와 password 및 자기소개를 입력 해라!

<form action= "form1.jsp" method = "post" name = "textform">

ID : <input type = "text" name = "id"> <br/>

Password : <input type="password" name = "pw"> <br/>

자기소개 <br/>

<textarea name="desc" rows="4" cols="50"></textarea><br>


<center>

<input type = "submit" value="전송" name="submitbtn">

<input type = "reset" value="초기화" name="resetbtn">

</center>

</form>

</body>

</html>






form1.jsp


<%@ page language="java" contentType="text/html;charset=EUC-KR"

pageEncoding="EUC-KR"%>

<%

request.setCharacterEncoding("utf-8");    //한글처리용

%>



<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">

<title>Form 처리 입니다아다아다다당 ㅋㅋ</title>

</head>

<body>


입력 정보 입니다.


ID : <%= request.getParameter("id") %>  <br/>

Password : <%= request.getParameter("pw") %>

자기소개 : <%= request.getParameter("desc") %>


</body>

</html>

블로그 이미지

김진리

,



Connector 에서 Add Attribute -> new attribute 해서 URIEncoding , euc-kr 을 생성한다. 

'개발자 > JSP' 카테고리의 다른 글

홈페이지 Login & targer From 예제  (0) 2013.02.04
JSP 사진,파일 upload 예제  (0) 2013.02.01
JSP Enumeration 사용 예제  (0) 2013.02.01
JSP post 전송 폼  (0) 2013.02.01
이클립스의 라인 색깔 나오게 하기  (0) 2013.01.31
블로그 이미지

김진리

,

맨 상위 메뉴에서 Window 에서 

따라하시면 됩니다.




바뀐 이클립스 라인 모습


블로그 이미지

김진리

,