Solucion errores y agregadi email de aceptacion

parent 86ca4453
......@@ -13,6 +13,7 @@ public class BootcampDao {
int status=0;
try{
System.out.println(b.getId_profesor());
Connection con= DataBase.getConnection();
PreparedStatement ps=con.prepareStatement(
"insert into bootcamp (id_lenguaje,id_profesor,fecha_inicio,fecha_fin,descripcion,imagen,titulo,activo) values (?,?,?::date,?::date,?,?,?,?)");
......
......@@ -19,6 +19,7 @@ public class SaveServlet extends HttpServlet {
int id_lenguaje= Integer.parseInt(request.getParameter("id_lenguaje"));
int id_profesor= Integer.parseInt(request.getParameter("id_profesor"));
System.out.println(id_profesor);
String fecha_inicio=request.getParameter("fecha_inicio");
String fecha_fin=request.getParameter("fecha_fin");
String descripcion=request.getParameter("descripcion");
......
package com.roshka.proyectofinal.profesor;
import com.roshka.proyectofinal.DataBase;
import com.roshka.proyectofinal.entity.Bootcamp;
import com.roshka.proyectofinal.entity.Profesor;
import java.sql.Connection;
......@@ -39,6 +40,7 @@ public class ProfesorDao {
ResultSet rs = ps.executeQuery();
while(rs.next()){
Profesor profesorObject = new Profesor();
profesorObject.setId(rs.getInt("id"));
profesorObject.setNombre(rs.getString("nombre"));
profesorObject.setApellido(rs.getString("apellido"));
profesorObject.setNro_cedula(rs.getInt("nro_cedula"));
......
......@@ -18,7 +18,7 @@
<%@ page import="com.roshka.proyectofinal.entity.Lenguaje, com.roshka.proyectofinal.entity.Bootcamp, com.roshka.proyectofinal.lenguaje.LenguajeDao, com.roshka.proyectofinal.bootcamp.BootcampDao, com.roshka.proyectofinal.entity.Profesor, com.roshka.proyectofinal.profesor.ProfesorDao, java.util.List,java.util.Iterator" %>
<%
LenguajeDao lenDao = new LenguajeDao();
LenguajeDao lenDao = new LenguajeDao();
List<Lenguaje> listLen = lenDao.listar();
Iterator<Lenguaje> iter = listLen.iterator();
Lenguaje len = null;
......@@ -104,13 +104,13 @@
<th> <%= boot.getNombre_profesor() + " " + boot.getApellido_profesor() %> </th>
<th> <%= boot.getActivo() %> </th>
<th> <form action="EditServletBootcamp" method="get">
<input type="hidden" name="id" value=<%= boot.getId() %>>
<input type="hidden" name="id" id="id" value=<%= boot.getId() %>>
<input type="submit" value="Editar" ></input>
</form>
</th>
<th>
<form action="DeleteServletBootcamp" method="get">
<input type="hidden" name="id" value= <%= boot.getId() %> >
<input type="hidden" name="id" id="id" value= <%= boot.getId() %> >
<input type="submit" value="Borrar" > </input>
</form>
</th>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment