JSP Display headers in a jsp page


/ Published in: Java
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <c:forEach items='${header}' var='h' varStatus="stat">
  2. <ul>
  3. <li>Header Name: <c:out value='${h.key}'/></li>
  4. <li>Header Value: <c:out value='${h.value}'/></li>
  5. <li>Index ${stat.index}</li>
  6. <li>Count ${stat.count}</li>
  7. </li>
  8. </ul>
  9. </c:forEach>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.