diff options
| author | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-11-02 01:09:41 +0100 |
|---|---|---|
| committer | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-11-02 01:09:41 +0100 |
| commit | 8722e1ef0a332d2d578ee14b05b1c7cad3816eac (patch) | |
| tree | cb7210ec6f38260fde64a036620a1a60a0005116 /WebContent | |
| parent | e52030d218829de9279e6d4e9d3f7160154ab521 (diff) | |
| download | FIT-8722e1ef0a332d2d578ee14b05b1c7cad3816eac.tar.gz FIT-8722e1ef0a332d2d578ee14b05b1c7cad3816eac.zip | |
Print parameters with JSTL core tags.
Diffstat (limited to 'WebContent')
| -rw-r--r-- | WebContent/ParamPrinter.jsp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/WebContent/ParamPrinter.jsp b/WebContent/ParamPrinter.jsp new file mode 100644 index 0000000..ed0e991 --- /dev/null +++ b/WebContent/ParamPrinter.jsp @@ -0,0 +1,28 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<title>JSP Parameter Printer</title> +</head> +<body> +<c:if test="${not empty param}"> + <table border="1"> + <thead> + <tr> + <td>Key</td> + <td>Value</td> + </tr> + </thead> + <c:forEach items="${param}" var="parameter"> + <tr> + <td><c:out value="${parameter.key}"/></td> + <td><c:out value="${parameter.value}"/></td> + </tr> + </c:forEach> + </table> +</c:if> +</body> +</html>
\ No newline at end of file |
