title: Retrieving cookie and array values in JSTL tags
body: <p>While retrieving cookies I need to use:</p>
  
  <pre><code>&lt;c:forEach items="${cookie}" var="currentCookie"&gt;  
      ${currentCookie.value.name} &lt;/br&gt;
  &lt;/c:forEach&gt;
  </code></pre>
  
  <p>But, while using custom arrays, why we need to skip the .value function?</p>
  
  <pre><code>&lt;c:forEach items="${myList}" var="myList"&gt;  
      ${myList.name} &lt;/br&gt;
  &lt;/c:forEach&gt;
  </code></pre>
  
  <p>Cookie contains a .getValue function() which returns the content of the cookie in string format, so how does using currentCookie.value.name work?</p>