<c:forEach items='${cookie}' var='mapEntry'> // reading cookies from any browser
<c:if test='${mapEntry.key eq "AllCookies"}'> // reading from a map
<c:set var="str1" value="${mapEntry.value.value}"/>
<c:forEach var="num" items="${fn:split(str1, ',')}"> // spliting a cookie value
<c:out value='${num}'/>
</c:forEach>
</c:if>
</c:forEach>
Wednesday, November 3, 2010
Reading cookies from browser in jsp
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment