Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
ProyectoFinal-Bootcamp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jose Baez
ProyectoFinal-Bootcamp
Commits
a79341b2
Commit
a79341b2
authored
May 17, 2022
by
Angel Zarate
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
arreglo profesor dao
parent
0b41fb7d
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
71 deletions
+15
-71
src/main/java/com/roshka/proyectofinal/Postulante/SaveServlet.java
+11
-33
src/main/webapp/formulario_bootcamp.jsp
+2
-2
src/main/webapp/index.html
+0
-11
src/main/webapp/postulante-consulta.jsp
+2
-12
src/main/webapp/postulante.css
+0
-13
No files found.
src/main/java/com/roshka/proyectofinal/Postulante/SaveServlet.java
View file @
a79341b2
...
...
@@ -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';\">×</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';\">×</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';\">×</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';'>×</span>"
);
out
.
print
(
"<span class='closebtn'' onclick='this.parentElement.style.display='none';'>×</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';\">×</span> \n"
+
"<span class=\"closebtn\" onclick=\"this.parentElement.style.display='none';\">×</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
)
{
...
...
src/main/webapp/formulario_bootcamp.jsp
View file @
a79341b2
...
...
@@ -24,7 +24,7 @@
Lenguaje len = null;
ProfesorDao profeDao = new ProfesorDao();
List
<Profesor>
listProfesor = profeDao.listar();
List
<Profesor>
listProfesor = profeDao.listar
Profesor
();
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.listar
Profesor
();
Iterator
<Profesor>
iterProfe2 = listProfesor2.iterator();
Profesor profe2 = null;
Bootcamp bootcampToEdit = (Bootcamp)request.getAttribute("Bootcamp");
...
...
src/main/webapp/index.html
View file @
a79341b2
...
...
@@ -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>
...
...
src/main/webapp/postulante-consulta.jsp
View file @
a79341b2
...
...
@@ -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>
...
...
src/main/webapp/postulante.css
View file @
a79341b2
<<<<<<<
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment