Minimal solution of list headers JSTL exercise (SL-314-EE6 mod 6 lab 1) without any <%…%> tags (e.g. for taglib declaration).
The document must be saved in a .jspx file (e.g. index.jspx):
<html xmlns:jsp="http://java.sun.com/JSP/Page"
xmlns:c="http://java.sun.com/jsp/jstl/core">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<head><title>Header jspx page</title></head>
<body>
Request headers:
<ul>
<c:forEach var="zheader" items="${header}">
<li>${zheader}</li>
</c:forEach>
</ul>
</body>
</html>
No comments:
Post a Comment