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
eb7dcb21
Commit
eb7dcb21
authored
May 17, 2022
by
Nahuel Mereles Rodriguez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Solucion errores y agregadi email de aceptacion
parent
86ca4453
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
3 deletions
+7
-3
src/main/java/com/roshka/proyectofinal/bootcamp/BootcampDao.java
+1
-0
src/main/java/com/roshka/proyectofinal/bootcamp/SaveServlet.java
+1
-0
src/main/java/com/roshka/proyectofinal/profesor/ProfesorDao.java
+2
-0
src/main/webapp/formulario_bootcamp.jsp
+3
-3
No files found.
src/main/java/com/roshka/proyectofinal/bootcamp/BootcampDao.java
View file @
eb7dcb21
...
...
@@ -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,?,?,?,?)"
);
...
...
src/main/java/com/roshka/proyectofinal/bootcamp/SaveServlet.java
View file @
eb7dcb21
...
...
@@ -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"
);
...
...
src/main/java/com/roshka/proyectofinal/profesor/ProfesorDao.java
View file @
eb7dcb21
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"
));
...
...
src/main/webapp/formulario_bootcamp.jsp
View file @
eb7dcb21
...
...
@@ -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>
...
...
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