<%@ 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>