-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy patha1.messages.jsp
38 lines (32 loc) · 1.01 KB
/
a1.messages.jsp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="t" tagdir="/WEB-INF/tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<t:master>
<jsp:attribute name="title">DVA - Private Messages</jsp:attribute>
<jsp:attribute name="header">
<h1>My Private Messages</h1>
</jsp:attribute>
<jsp:body>
<pre>${query}</pre>
<table class="table table-responsive">
<tr>
<th>From</th>
<th>To</th>
<th>Message</th>
</tr>
<c:forEach var="message" items="${messages}">
<tr>
<td>
${message.sender}
</td>
<td>
${message.receiver}
</td>
<td>
${message.message}
</td>
</tr>
</c:forEach>
</table>
</jsp:body>
</t:master>