How to redirect a 'href' in a jsp?

0

I have a form to update several delegations by means of a "id" called "actualizar.jsp" and for each delegation I have a query.

at the moment of clicking on update the data to modify the id delegación=1 shows me and modifies it but what I want is that at the moment of finishing the modification by means of a href send me to the page of the query I wanted to modify,

I have a href but it sends me to the home page, I do not know how to ask you to send me a specific query.

introducir el código aquí  <%
  consulta  conexion = new consulta("jdbc:oracle:thin:@localhost:1521:XE","pasaportes","oppasaportes");
    String query="UPDATE delegaciones SET  GESTION_FIRMA_CONTRATO='"+GESTION_FIRMA_CONTRATO+"' , FIRMA_DEL_CONTRATO ='"+FIRMA_DEL_CONTRATO+"' , NOTIFICACION_DGD = '"+NOTIFICACION_DGD+"'  , CONTRATO = '"+CONTRATO+"'  WHERE id_delegacion = '"+ID_DELEGACION+"'";
    int c=conexion.ejeSentencia(query);
    if(c==1){    



   %>
   <h4>Datos Actualizados Con exito</h4>
   <h5>Fecha y Hora: <%= new java.util.Date() %></h5>
   <%
         }
   %>


   <a href="inicio.jsp">regresar...</a>

The update works, my only problem is my href that I want to return to the delegation that already updated and not to start.jsp

    
asked by Manny Brenes 01.03.2017 в 17:11
source

0 answers