Posted By

antoinet on 10/21/10


Tagged

cookies JSP


Versions (?)

show cookies


 / Published in: Java
 

  1. <table border="1">
  2.  
  3. <%
  4. Cookie[] cookies = request.getCookies();
  5. if (cookies != null) {
  6. for (int i = 0; i < cookies.length; i++) {
  7. %>
  8. <tr><td><%=cookies[i].getName()%></td><td><%=cookies[i].getValue()%></td></tr>
  9. <%
  10. }
  11. }
  12. %>
  13. </table>

Report this snippet  

You need to login to post a comment.