Blame view

src/main/webapp/WEB-INF/views/viewUsers.jsp 1.23 KB
aa193b2b   Julien Iguchi-Cartigny   First version
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
39
  <%@ page contentType="text/html" pageEncoding="UTF-8" %>
  <%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>
  <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  
  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
      "http://www.w3.org/TR/html4/strict.dtd">
  
  <html>
      <head>
          <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
          <title><spring:message code="view.users.page.title"/></title>
      </head>
      <body>
          <h1><spring:message code="view.users.main.header"/></h1>
  
          <h4><spring:message code="view.users.greetings"/> ${userSession.username} !</h4>
  
          <table>
              <thead>
                  <tr>
                      <td><spring:message code="domain.user.username"/></td>
                  </tr>
              </thead>
              <tbody>
                  <c:forEach items="${users}" var="user">
                      <tr>
                          <td>${user.username}</td>
                      </tr>
                  </c:forEach>
              </tbody>
          </table>
  
      <ul>
          <li><a href="newUser"><spring:message code="new.user.main.header"/></a></li>
          <li><a href="logout"><spring:message code="view.users.main.logout"/></a></li>
      </ul>
  
  </body>
  </html>