<%--
Document : CookieFind
Created on : May 16, 2013, 11:22:08 PM
Author : onder
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<%
String company = "";
if (request.getCookies() != null) {
for (Cookie cookie : request.getCookies()) {
if (cookie.getName().equals("company")) {
company = cookie.getValue();
}
}
}
%>
Çerez bulundu : <%=company%>
</body>
</html>
Dosyayı İndir