main.jsp 872 Bytes
Newer Older
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
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<html>
<head>

</head>
<body>
<h4>Stack</h4>
<form:form method="POST" action="push" modelAttribute="StackValue">
    <table>
        <tr>
            <td><form:label path="value">Numero</form:label></td>
            <td><form:input path="value"/></td>
            <td><a href="/pop">Pop</a></td>
            <td>${popValue}</td>
        </tr>
        <tr>
            <td><input type="submit" value="Submit"></td>
        </tr>
        <tr>
            <td><ul>
                <c:forEach items="${stack}" var="numero">
                    <li>${numero}</li>
                </c:forEach>
            </ul></td>
        </tr>
    </table>
</form:form>
</body>
</html>