<p>Headers</p> <c:forEach var="hdr" items="${header}"> <table bgcolor="lightgreen"> <tbody> <tr> <td> <c:out value="${hdr.key}"> </c:out> </td> <td> <c:out value="${hdr.value}"> </c:out> </td> </tr> </tbody> </table> </c:forEach> <p>Attributes:</p> <c:forEach var="attr" items="${pageContext.request.attributeNames}"> <table bgcolor="lightgreen"> <tbody> <tr> <td> <c:out value="${attr}"> </c:out> </td> </tr> </tbody> </table> </c:forEach> <p>Parameters</p> <c:forEach var="pmtr" items="${pageContext.request.parameterMap}"> <table bgcolor="lightgreen"> <tbody> <tr> <td> <c:out value="${pmtr.key}"> </c:out> </td> <td> <c:out value="${pmtr.value}"> </c:out> </td> </tr> </tbody> </table> </c:forEach>
Tuesday, July 15, 2008
Print request object using JSTL
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment