• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

cookie name using EL

 
sangeeta kapoor
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
${cookie.userName.value} can be used to get the value of userName cookie without using scripting.
But how can I get the cookie names using EL.
Something similar to following in scripting

<%
...
cookies[i].getName();
%>
 
Nitish Bahadur
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<c:forEach var="aCookie" items="${cookie}">
aCookie.key = ${aCookie.key} <br/>
</c:forEach>
 
sundar katluri
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just tried this it worked
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic