Cookie display in a JSP page : Cookie « JSP « Java






Cookie display in a JSP page

<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>

<html>
<head><title>Cookie display</title></head>
<body>
<h2>Here are all the Available Cookies</h2>

<c:forEach var="cookies" items="${cookie}">

    <strong><c:out value=
        "${cookies.key}"/></strong>: Object=<c:out value="${cookies.value}"/>, value=<c:out value="${cookies.value.value}"/><br />
        
</c:forEach>


</body>
</html>


           
       








Related examples in the same category

1.JSP Create and List Cookie
2.JSP List All Cookie
3.Setting a Cookie
4.Setting and Reading Cookies
5.Deal with the cookie
6.JSP: deal with cookie