• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<%@page contentType="text/html;charset=UTF-8" language="java"%>
2<%@taglib prefix="c" uri="jakarta.tags.core"%>
3<%@taglib prefix="e" uri="owasp.encoder.jakarta"%>
4<html>
5    <head>
6        <title>View Items</title>
7        <link href="<c:url value="/css/common.css"/>" rel="stylesheet" type="text/css">
8    </head>
9    <body>
10        <table>
11            <thead>
12                <tr>
13                    <th>ID</th>
14                    <th>Name</th>
15                    <th>Description</th>
16                </tr>
17            </thead>
18            <tbody>
19                <c:forEach items="${items}" var="item">
20                    <tr>
21                        <td id="a${item.id}">${item.id}</td>
22                        <td id="b${item.id}"><e:forHtml  value="${item.name}"/></td>
23                        <td id="c${item.id}">${e:forHtml(item.description)}</td>
24                    </tr>
25                </c:forEach>
26            </tbody>
27        </table>
28    </body>
29</html>