Commit a79341b2 by Angel Zarate

arreglo profesor dao

parent 0b41fb7d
......@@ -107,64 +107,42 @@ public class SaveServlet extends HttpServlet {
}
}
}
<<<<<<< HEAD
if (status > 0) {
// out.print("<p>Record saved successfully!</p>");
=======
if(status>0){
//out.print("<p>Record saved successfully!</p>");
>>>>>>> d3a6ea52ee1614cfbff576707fd6717fb6a81036
out.print(" <div class=\"alert\">\n" +
" <span class=\"closebtn\" onclick=\"this.parentElement.style.display='none';\">&times;</span> \n"
+
" <strong>Formulario Cargado!</strong> EXITOSAMENTE CARGADO\n" +
"</div>");
<<<<<<< HEAD
request.getRequestDispatcher("formulario.jsp").include(request, response);
} else {
if (rechazarDatos) {
out.print(" <div class=\"alert info\">\n" +
" <span class=\"closebtn\" onclick=\"this.parentElement.style.display='none';\">&times;</span> \n"
+
" <strong>Formulario ya Cargado!</strong> YA EXISTE EL FORMULARIO\n" +
"</div>");
request.getRequestDispatcher("formulario.jsp").include(request, response);
} else {
out.println("Error al cargar datos");
out.print(" <div class=\"alert info error\">\n" +
" <span class=\"closebtn\" onclick=\"this.parentElement.style.display='none';\">&times;</span> \n"
+
" <strong>Formulario ya Cargado!</strong> YA EXISTE EL FORMULARIO\n" +
=======
request.setAttribute("bootcamp", bootcampActual);
RequestDispatcher rd = request.getRequestDispatcher("formulario.jsp");
rd.include(request, response);
//RequestDispatcher rd = request.getRequestDispatcher("formulario.jsp");
//rd.include(request, response);
}else{
if (rechazarDatos){
// RequestDispatcher rd = request.getRequestDispatcher("formulario.jsp");
// rd.include(request, response);
} else {
if (rechazarDatos) {
out.print("<div class='alert info''>");
out.print("<span class='closebtn'' onclick='this.parentElement.style.display='none';'>&times;</span>");
out.print(
"<span class='closebtn'' onclick='this.parentElement.style.display='none';'>&times;</span>");
out.print("<strong>Formulario ya Cargado!</strong> YA EXISTE EL FORMULARIO");
out.print("</div>");
//request.getRequestDispatcher("formulario.jsp").include(request, response);
// request.getRequestDispatcher("formulario.jsp").include(request, response);
request.setAttribute("bootcamp", bootcampActual);
RequestDispatcher rd = request.getRequestDispatcher("formulario.jsp");
rd.include(request, response);
}else {
} else {
out.println("Error al cargar datos");
out.print("<div class='alert info error'>" +
"<span class=\"closebtn\" onclick=\"this.parentElement.style.display='none';\">&times;</span> \n" +
"<span class=\"closebtn\" onclick=\"this.parentElement.style.display='none';\">&times;</span> \n"
+
"<strong>Formulario ya Cargado!</strong> YA EXISTE EL FORMULARIO\n" +
>>>>>>> d3a6ea52ee1614cfbff576707fd6717fb6a81036
"</div>");
request.setAttribute("bootcamp", bootcampActual);
RequestDispatcher rd = request.getRequestDispatcher("formulario.jsp");
rd.include(request, response);
//request.getRequestDispatcher("formulario.jsp").include(request, response);
// request.getRequestDispatcher("formulario.jsp").include(request, response);
}
}
} catch (Exception ex) {
......
......@@ -24,7 +24,7 @@
Lenguaje len = null;
ProfesorDao profeDao = new ProfesorDao();
List<Profesor> listProfesor = profeDao.listar();
List<Profesor> listProfesor = profeDao.listarProfesor();
Iterator<Profesor> iterProfe = listProfesor.iterator();
Profesor profe = null;
%>
......@@ -130,7 +130,7 @@
Lenguaje len2 = null;
ProfesorDao profeDao2 = new ProfesorDao();
List<Profesor> listProfesor2 = profeDao2.listar();
List<Profesor> listProfesor2 = profeDao2.listarProfesor();
Iterator<Profesor> iterProfe2 = listProfesor2.iterator();
Profesor profe2 = null;
Bootcamp bootcampToEdit = (Bootcamp)request.getAttribute("Bootcamp");
......
......@@ -27,17 +27,6 @@
<ul>
<li class="link-menu"><a href="">Home</a></li>
<li class="link-menu"><a href="bootcamp.jsp">Postulate</a></li>
<<<<<<< HEAD
<li class="link-menu"><a href="formulario_bootcamp.jsp">Crear bootcamp</a></li>
<li class="link-menu"><a href="manage_postulantes.jsp">Manage Postulantes(perdon angel)</a></li>
<li class="link-menu"><a href="login.jsp">Login</a>
<li class="link-menu"><a href="protected">Recurso Protegido</a></li>
</li>
<li class="link-menu"><a href="formulario_lenguaje.jsp">Crear lenguaje</a>
</li>
<li class="link-menu"><a href="formulario_profesor.jsp">Crear profesor</a>
=======
>>>>>>> d3a6ea52ee1614cfbff576707fd6717fb6a81036
</li>
</ul>
......
......@@ -14,7 +14,6 @@
</head>
<body>
<<<<<<< HEAD
<div class="logo">
<a href="./index.html"> <img class="logoi" src="imagenes/logo-roshka.svg" alt="" /> </a>
<!-- logo con link -->
......@@ -48,14 +47,12 @@
</div>
=======
<div>
<h1>LISTA POSTULANTES</h1>
<form action="filtros-postulante" >
<input type="search" name="nombreBuscar"
placeholder="Buscar por nombre">
<button type="submit">Buscar</button>
>>>>>>> d3a6ea52ee1614cfbff576707fd6717fb6a81036
</form>
<table>
......@@ -76,17 +73,10 @@
Bootcamps
</th>
<th>
<<<<<<< HEAD
Aceptados
=======
<form action="filtros-posjtulante" method="post">
<input type="hidden" name="nombre" value="aceptado">
<button type="submit">Aceptado</button>
</form>
>>>>>>> d3a6ea52ee1614cfbff576707fd6717fb6a81036
Aceptado
</th>
</tr>
</tr>s
<tbody class="tcuerpo">
<c:forEach var="postulante" items="${postulantes}" varStatus="myIndex">
<tr>
......
<<<<<<< HEAD
body{
background-image: url(imagenes/descarga.svg);
......@@ -81,15 +80,3 @@ th { border: 1px solid black; height: 30px;
}
button:hover{
color: yellow;}
=======
@import 'https://fonts.googleapis.com/css?family=Open+Sans|Quicksand:400,700';
body{
background-image: url(imagenes/descarga.svg);
height: 100%;
font-family: 'Quicksand', sans-serif;
color: white;
webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
h1{ font-size: 40px
>>>>>>> d3a6ea52ee1614cfbff576707fd6717fb6a81036
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