<%-- 
    Document   : altaMaterial
    Created on : 06-jul-2018, 16:23:58
    Author     : armaf
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <form:form commandName="material" >
            <div>
                <label>Código</label>
                <form:input path="codigo" />
                <form:errors path="codigo" />
            </div>
            <div>
                <label>Nombre</label>
                <form:input path="nombre" />
                <form:errors path="nombre" />
            </div>            
            <div>
                <label>Precio</label>
                <form:input path="resistencia" />
                <form:errors path="resitencia" />
            </div>   
            <input type="submit" value="Añadir" />
        </form:form>
    </body>
</html>
