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
25355a76
Commit
25355a76
authored
May 16, 2022
by
Yovan Martinez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Solucion error merge
parent
799fa838
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
141 additions
and
41 deletions
+141
-41
src/main/java/com/roshka/proyectofinal/Postulante/PostulanteDao.java
+0
-39
src/main/java/com/roshka/proyectofinal/Postulante/SaveServlet.java
+2
-2
src/main/webapp/form.css
+139
-0
src/main/webapp/formulario.jsp
+0
-0
No files found.
src/main/java/com/roshka/proyectofinal/Postulante/PostulanteDao.java
View file @
25355a76
...
...
@@ -36,45 +36,6 @@ public class PostulanteDao extends HttpServlet {
return
status
;
}
public
static
List
<
Postulante
>
ListarPostulantes
(){
List
<
Postulante
>
list
=
new
ArrayList
<
Postulante
>();
try
{
Connection
con
=
DataBase
.
getConnection
();
PreparedStatement
ps
=
con
.
prepareStatement
(
"select * from postulante"
);
ResultSet
rs
=
ps
.
executeQuery
();
while
(
rs
.
next
()){
Postulante
e
=
new
Postulante
();
e
.
setId
(
rs
.
getInt
(
"id"
));
e
.
setNombre
(
rs
.
getString
(
"nombre"
));
//e.setPassword(rs.getString(3));
e
.
setCorreo
(
rs
.
getString
(
"correo"
));
e
.
setApellido
(
rs
.
getString
(
"apellido"
));
e
.
setDireccion
(
rs
.
getString
(
"direccion"
));
list
.
add
(
e
);
}
con
.
close
();
}
catch
(
Exception
e
){
e
.
printStackTrace
();}
return
list
;
}
public
static
int
update
(
Postulante
e
){
int
status
=
0
;
try
{
Connection
con
=
DataBase
.
getConnection
();
PreparedStatement
ps
=
con
.
prepareStatement
(
"update postulante set aceptado=? where id=?"
);
ps
.
setBoolean
(
1
,
e
.
getAceptado
());
ps
.
setInt
(
2
,
e
.
getId
());
status
=
ps
.
executeUpdate
();
con
.
close
();
}
catch
(
Exception
ex
){
ex
.
printStackTrace
();}
return
status
;
}
...
...
src/main/java/com/roshka/proyectofinal/Postulante/SaveServlet.java
View file @
25355a76
...
...
@@ -116,11 +116,11 @@ public class SaveServlet extends HttpServlet {
out
.
println
(
"<a href=formulario.jsp >Volver al cuestionario</a>"
);
}
else
{
out
.
println
(
"<p>El correo ingresado ya esta registrado para el bootcamp actual<p>"
);
//request.getRequestDispatcher("").include(request, response);
}
}
else
{
out
.
println
(
"Error"
);
//out.println("<script> window.alert('Falla al enviar la postulacion,Intente de nuevo') </script>");
}
}
...
...
src/main/webapp/form.css
0 → 100644
View file @
25355a76
/* el header donde va el logo y el menu */
html
,
body
{
background-image
:
url(imagenes/descarga.svg)
;
}
/* damos los estilos a todo lo que contiene el body */
body
{
background-color
:
rgba
(
11
,
49
,
110
,
0.75
);
font-family
:
Calibri
,
Candara
,
Segoe
,
Segoe
UI
,
Optima
,
Arial
,
sans-serif
;
color
:
wheat
;
font-weight
:
bold
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
height
:
160%
;}
}
/* para el logo */
img
{
width
:
165px
;
padding
:
10px
;
}
p
.enter
{
text-align
:
center
;
font-size
:
20px
;
}
/* para el parrafo */
p
:hover
{
color
:
yellow
;
}
/* para el create o sea para el main */
.create
{
width
:
100%
;
max-width
:
785px
;
min-width
:
320px
;
border-radius
:
15px
;
background-color
:
rgba
(
11
,
49
,
110
,
0.75
);
padding
:
1rem
;
}
/* contenedor */
/* para el forrmulario */
.form
label
{
display
:
block
;
border
:
none
;
align-items
:
center
;
}
.form
input
{
display
:
block
;
border
:
none
;
width
:
50%
;
align-items
:
center
;
}
.form
input
[
type
=
"email"
],
.form
input
[
type
=
"text"
],
.form
input
[
type
=
"number"
]
{
background-color
:
transparent
;
border-radius
:
10px
;
border
:
1px
solid
#000
;
}
.form
input
:hover
{
background-color
:
wheat
;
}
a
{
text-decoration
:
none
;
}
ul
{
list-style
:
none
;
font-size
:
15px
;
}
a
{
text-decoration
:
none
;
color
:
black
;
background-color
:
#21211d
;
border-radius
:
10px
;
color
:
#FFF
;
padding
:
10px
;
margin
:
15px
;
text-decoration
:
none
;
cursor
:
pointer
;
background-image
:
url(imagenes/descarga.svg)
;
}
.form
input
[
type
=
"reset"
]
,
.form
input
[
type
=
"submit"
]
{
text-decoration
:
none
;
background-color
:
rgba
(
11
,
49
,
110
,
0.75
);
background-image
:
url(imagenes/descarga.svg)
;
border-radius
:
5px
;
;
padding
:
10px
;
border-radius
:
10px
;
margin
:
10px
;
text-decoration
:
none
;
color
:
#ffff
;
text-align
:
left
;
cursor
:
pointer
;
width
:
80px
;
text-align
:
center
;
}
/*hola mundo*/
input
#ruby
,
input
#python
,
input
#c
,
input
#javascript
,
input
#java
{
width
:
30px
;
}
input
#experiencia_laboral
,
input
#notebook
,
input
#universidad
{
width
:
500px
;
}
/* para el alert */
.alert
{
padding
:
10px
;
background-color
:
background-color
:
#2196F3
;
color
:
white
;
}
.alert.info
{
background-color
:
#2196F3
;}
.alert.error
{
background-color
:
#ff0000
;}
.closebtn
{
margin-left
:
15px
;
color
:
white
;
font-weight
:
bold
;
float
:
right
;
font-size
:
22px
;
line-height
:
20px
;
cursor
:
pointer
;
transition
:
0.3s
;
}
.closebtn
:hover
{
color
:
black
;
}
src/main/webapp/formulario.jsp
View file @
25355a76
This diff is collapsed.
Click to expand it.
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