viewUsers.jsp 1.23 KB
<%@ 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>