empleadoForm.jsp 1.22 KB
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 32 33 34
<%@ 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>Formulario de Empleado</h4>
        <form:form method="POST" action="addEmployee" modelAttribute="empleado">
            <table>
                <tr>
                    <td><form:label path="id">Id</form:label></td>
                    <td><form:input path="id"/></td>
                </tr>
                <tr>
                    <td><form:label path="nombre">Nombre</form:label></td>
                    <td><form:input path="nombre"/></td>
                </tr>
                <tr>
                    <td><form:label path="salario">Salario</form:label></td>
                    <td><form:input path="salario"/></td>
                </tr>
                <tr>
                    <td><form:label path="cargo">Cargo</form:label></td>
                    <td><form:input path="cargo"/></td>
                </tr>
                <tr>
                    <td><input type="submit" value="Submit"></td>
                </tr>
            </table>
        </form:form>
    </body>
</html>