Java Tutorial/JSTL/Header

Материал из Java эксперт
Перейти к: навигация, поиск

Reference Header Value

   <source lang="java">

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

 <head>
   <title>List HTTP headers</title>
 </head>
 <body>
   This page has the following HTTP headers:
    <%-- "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}">
  1. <c:out value="${nextHeader.key}" /> = <c:out value="${nextHeader.value}" /> </c:forEach>
 </body>

</html></source>