반응형

<%@ page language="java" contentType="text/html; charset=UTF-8"

    pageEncoding="UTF-8"%>

<!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=UTF-8">

<title>모든 쿠기 읽기</title>

<%@ page import="java.net.*" %>

<script>

function back(){

history.back();

}


</script>



</head>

<body>

<input type="button" value="뒤로" onclick="back()" />

<%

Cookie[] cookies = request.getCookies();

for(Cookie imsi:cookies){

out.println(imsi.getName());

out.println(":"+URLDecoder.decode(imsi.getValue(),"UTF-8"));

out.println("<br />");

}

%>


</body>

</html>

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

[JSP] 쿠키 변경  (0) 2014.11.18
[JSP] 쿠키 삭제  (0) 2014.11.18
[JSP] 쿠키생성하기  (0) 2014.11.18
[JSP] 로그인 하기  (0) 2014.11.18
[JSP] dto 데이터의 값을 jsp에 가져오기  (0) 2014.11.18

+ Recent posts