Skip to content

Commit

Permalink
Control Cliente Update
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-emarquez committed Aug 7, 2021
1 parent feb5c7b commit c81259e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
12 changes: 12 additions & 0 deletions ControlClientes/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -497,3 +497,15 @@ _Visualizacion de Backend_
</tr>
</table>


## Terminado

- Aplicativo terminado y funcionando

<table align="center" >
<tr>
<td align="center" style="padding=0;width=50%;">
<img align="center" style="padding=0;" src="../images/controlClientes6.png" />
</td>
</tr>
</table>
6 changes: 3 additions & 3 deletions ControlClientes/src/main/java/web/ServletControlador.java
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<jsp:include page="/WEB-INF/paginas/comunes/cabecero.jsp"/>

<form action="${pageContext.request.contextPath}/ServletControlador?accion=modificar&idCliente=${cliente.idCliente}"
class="was-validated">
method="POST" class="was-validated">

<!--Botones de Navegacion -->
<jsp:include page="/WEB-INF/paginas/comunes/botonesNavegacionEdicion.jsp"/>
Expand Down
Binary file added images/controlClientes6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c81259e

Please sign in to comment.