Reference Header Value : Header « JSTL « Java Tutorial






<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>

<html>
  <head>
    <title>List HTTP headers</title>
  </head>
  <body>
    This page has the following HTTP headers:<br />
    <ol>
      <%-- 'param' is an implicit object. It is a Map that maps a 'key'
           (the parameter name) to a 'value' --%>
      <c:forEach var="nextHeader" items="${header}">
        <li> <c:out value="${nextHeader.key}" /> = <c:out value="${nextHeader.value}" />
      </c:forEach>
    </ol>
  </body>
</html>
  Download:  JSTLReferenceHeaderValue.zip( 1,021 k)







24.23.Header
24.23.1.Reference Header Value