I wrote a basic test page and this is the result I get.

output
--------------------------------------------
print out the classname

java.util.HashMap$Entry 
java.util.HashMap$Entry 
java.util.HashMap$Entry 

print out the cookie

id1=value_for_id1
JSESSIONID=1B6A8CE1F51A31E335719420A239BEB2
id2=value_for_id2
--------------------------------------------

The source is below:
-------------------------------------------------------------
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>

print out the classname<p>
<c:forEach var="acookie" items="${cookie}">
<%
  Object ck = pageContext.getAttribute("acookie");
  out.println(ck.getClass().getName());
%><br>
</c:forEach>
<p>
print out the cookie<p>
<c:forEach var="acookie" items="${cookie}">
<c:out value="${acookie.value.name}"/>=<c:out
value="${acookie.value.value}"/><br>
</c:forEach>
-------------------------------------------------------------

It looks like using <c:out value="${acookie.name}"/> won't retrieve the
value, since acookie is a hashentry, it can't do
acookie.getName().toString().  I'm guessing that is correct
functionality right?

peter

--
To unsubscribe, e-mail:   <mailto:taglibs-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-user-help@;jakarta.apache.org>

Reply via email to