I would like to be able to edit the fields of a table from a list on a page jsp
try {
Connection conexion=null;
ResultSet rs = null;
conexion = DriverManager.getConnection("jdbc:mysql://localhost:3306/ticketsdetrabajo", "root", "Cuatro:2cuatro");
//creamos objeto Statement
Statement st=conexion.createStatement();
rs=st.executeQuery(consultaSQL);
while(rs.next()){
aprobado=(int)rs.getObject("Aprobado");
%>
<tr>
<td class="table2"><%=rs.getObject("NParte")%><br>
</td>
<td class="table2" ><%=rs.getObject("Nempleado")%><br>
</td>
<td class="table2" ><%=rs.getObject("Nombre")%><br>
</td>
<td class="table2"><%=rs.getObject("Apellidos")%><br>
</td>
<td class="table2"><%=rs.getObject("DescripcionTarea")%><br>
</td>
<td class="table2"><%=rs.getObject("TiempoEmpleado")%><br>
</td>
<td class="table2"><%=rs.getObject("FechaEntrada")%><br>
</td>
<td class="table2"><%=rs.getObject("FechaEntrega")%><br>
</td>
<td class="table2"><% if (aprobado==1){%>Si
<%}else {%>No<%} %>
<br>
</td>
<td class="table2"><button name="btnlapiz" class="botonplano" onclick="location.href='editarpartesdetrabajo.jsp'" ><img alt="editar" src="lapiz.png"></button></td>
</tr>
<%}
}catch (java.sql.SQLException sqle){
System.out.println("Error: " + sqle);
}
%>
When clicking on the image I would like to be able to pass parameters of that row to a jsp, today I am a little thick and I can not think of how to do so by pressing the image of the pencil take that row and pass the parameters another page.
Thanks and best regards