diff --git a/ControlClientes/readme.md b/ControlClientes/readme.md index 5695ce9..486627d 100644 --- a/ControlClientes/readme.md +++ b/ControlClientes/readme.md @@ -497,3 +497,15 @@ _Visualizacion de Backend_ + +## Terminado + +- Aplicativo terminado y funcionando + + + + + +
+ +
diff --git a/ControlClientes/src/main/java/web/ServletControlador.java b/ControlClientes/src/main/java/web/ServletControlador.java index 47bae85..e9f9ee2 100644 --- a/ControlClientes/src/main/java/web/ServletControlador.java +++ b/ControlClientes/src/main/java/web/ServletControlador.java @@ -107,6 +107,7 @@ private void insertarCliente(HttpServletRequest request, HttpServletResponse res private void modificarCliente(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //recuperamos los valores del formulario editarCliente int idCliente = Integer.parseInt(request.getParameter("idCliente")); String nombre = request.getParameter("nombre"); @@ -129,12 +130,11 @@ private void modificarCliente(HttpServletRequest request, HttpServletResponse re //Redirigimos hacia accion por default this.accionDefault(request, response); } - - private void eliminarCliente(HttpServletRequest request, HttpServletResponse response) + + private void eliminarCliente(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { //recuperamos los valores del formulario editarCliente int idCliente = Integer.parseInt(request.getParameter("idCliente")); - //Creamos el objeto de cliente (modelo) Cliente cliente = new Cliente(idCliente); diff --git a/ControlClientes/src/main/webapp/WEB-INF/paginas/cliente/editarCliente.jsp b/ControlClientes/src/main/webapp/WEB-INF/paginas/cliente/editarCliente.jsp index 95990bf..3e28ef0 100644 --- a/ControlClientes/src/main/webapp/WEB-INF/paginas/cliente/editarCliente.jsp +++ b/ControlClientes/src/main/webapp/WEB-INF/paginas/cliente/editarCliente.jsp @@ -15,7 +15,7 @@
+ method="POST" class="was-validated"> diff --git a/images/controlClientes6.png b/images/controlClientes6.png new file mode 100644 index 0000000..91e7a1a Binary files /dev/null and b/images/controlClientes6.png differ