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
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
160 additions
and
188 deletions
+160
-188
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
+19
-147
No files found.
src/main/java/com/roshka/proyectofinal/Postulante/PostulanteDao.java
View file @
25355a76
...
@@ -36,45 +36,6 @@ public class PostulanteDao extends HttpServlet {
...
@@ -36,45 +36,6 @@ public class PostulanteDao extends HttpServlet {
return
status
;
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 {
...
@@ -116,11 +116,11 @@ public class SaveServlet extends HttpServlet {
out
.
println
(
"<a href=formulario.jsp >Volver al cuestionario</a>"
);
out
.
println
(
"<a href=formulario.jsp >Volver al cuestionario</a>"
);
}
else
{
}
else
{
out
.
println
(
"<p>El correo ingresado ya esta registrado para el bootcamp actual<p>"
);
out
.
println
(
"<p>El correo ingresado ya esta registrado para el bootcamp actual<p>"
);
//request.getRequestDispatcher("").include(request, response);
}
}
}
else
{
}
else
{
out
.
println
(
"Error"
);
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
...
@@ -6,14 +6,15 @@ pageEncoding="UTF-8"%>
...
@@ -6,14 +6,15 @@ pageEncoding="UTF-8"%>
<html>
<html>
<head>
<head>
<link
href=
"estilos/form.css"
rel=
"stylesheet"
type=
"text/css"
/>
<link
rel=
"shortcut icon"
href=
"imagenes/roshkaicon.ico"
sizes=
"any"
/>
<!-- CSS only -->
<link
href=
"https://cdn.jsdelivr.net/npm/bootstrap@5.2.0-beta1/dist/css/bootstrap.min.css"
rel=
"stylesheet"
integrity=
"sha384-0evHe/X+R7YkIZDRvuzKMRqM+OrBnVFBL6DOitfPri4tjfHxaWutUpFmBp4vmVor"
crossorigin=
"anonymous"
>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
<link
rel=
"stylesheet"
href=
"form.css"
type=
"text/css"
>
<link
href=
"css/bootstrap.css"
rel=
"stylesheet"
type=
"text/css"
/>
<link
href=
"css/bootstrap.css"
rel=
"stylesheet"
type=
"text/css"
/>
<script
src=
"Javascript.js"
></script>
<script
src=
"Javascript.js"
></script>
<title>
JSP Page
</title>
<link
href=
"estilos/form.css"
rel=
"stylesheet"
type=
"text/css"
/>
<link
rel=
"shortcut icon"
href=
"imagenes/roshkaicon.ico"
sizes=
"any"
/>
<link
rel=
"stylesheet"
media=
"(max-width: 800px)"
href=
"example.css"
/>
<link
rel=
"stylesheet"
media=
"(max-width: 800px)"
href=
"example.css"
/>
<link
href=
"https://cdn.jsdelivr.net/npm/bootstrap@5.2.0-beta1/dist/css/bootstrap.min.css"
rel=
"stylesheet"
integrity=
"sha384-0evHe/X+R7YkIZDRvuzKMRqM+OrBnVFBL6DOitfPri4tjfHxaWutUpFmBp4vmVor"
crossorigin=
"anonymous"
>
<title>
Formulario Postulante
</title>
<title>
Formulario Postulante
</title>
</head>
</head>
...
@@ -29,7 +30,6 @@ pageEncoding="UTF-8"%>
...
@@ -29,7 +30,6 @@ pageEncoding="UTF-8"%>
<div>
<div>
<
%
<
%
int
id =
Integer.parseInt(request.getParameter("bootcamp"));
int
id =
Integer.parseInt(request.getParameter("bootcamp"));
System
.
out
.
print
("
hola
"+
id
);
Connection
con =
DataBase.getConnection();
Connection
con =
DataBase.getConnection();
Statement
stmt =
con.createStatement();
Statement
stmt =
con.createStatement();
ResultSet
rs =
stmt.executeQuery("SELECT
*
FROM
bootcamp
WHERE
id=
"+id+ "
LIMIT
1
"
);
ResultSet
rs =
stmt.executeQuery("SELECT
*
FROM
bootcamp
WHERE
id=
"+id+ "
LIMIT
1
"
);
...
@@ -42,8 +42,6 @@ pageEncoding="UTF-8"%>
...
@@ -42,8 +42,6 @@ pageEncoding="UTF-8"%>
</p>
</p>
<p
class=
"enter"
>
Si sigues interesado y cumples con los requisitos, completa el siguiente formulario:
</p>
<p
class=
"enter"
>
Si sigues interesado y cumples con los requisitos, completa el siguiente formulario:
</p>
<form
method=
"post"
action=
"SaveServlet"
class=
"form"
>
<form
method=
"post"
action=
"SaveServlet"
class=
"form"
>
...
@@ -67,6 +65,17 @@ pageEncoding="UTF-8"%>
...
@@ -67,6 +65,17 @@ pageEncoding="UTF-8"%>
<label
for=
"direccion"
>
Direccion:
</label>
<label
for=
"direccion"
>
Direccion:
</label>
<input
required
id=
"direccion"
name=
"direccion"
type=
"text"
><br>
<input
required
id=
"direccion"
name=
"direccion"
type=
"text"
><br>
<label
for=
"experiencia_laboral"
>
Experiencia laboral
</label>
<!-- Si no lo marca el valor que envia es null y si lo marca es "ON" -->
<input
id=
"experiencia_laboral"
name=
"experiencia_laboral"
type=
"checkbox"
><br>
<label
for=
"notebook"
>
Cuenta con notebook
</label>
<input
id=
"notebook"
name=
"notebook"
type=
"checkbox"
><br>
<label
for=
"universidad"
>
Estudio Universitario
</label>
<input
id=
"universidad"
name=
"universidad"
type=
"checkbox"
><br>
<p
for=
"experiencia_programando"
>
Lenguajes de programacion que conoces:
</p>
<p
for=
"experiencia_programando"
>
Lenguajes de programacion que conoces:
</p>
<
%@
page
import=
"com.roshka.proyectofinal.entity.Lenguaje, com.roshka.proyectofinal.lenguaje.LenguajeDao, java.util.List,java.util.Iterator"
%
>
<
%@
page
import=
"com.roshka.proyectofinal.entity.Lenguaje, com.roshka.proyectofinal.lenguaje.LenguajeDao, java.util.List,java.util.Iterator"
%
>
...
@@ -89,24 +98,17 @@ pageEncoding="UTF-8"%>
...
@@ -89,24 +98,17 @@ pageEncoding="UTF-8"%>
<
%
}
%
>
<
%
}
%
>
</ul>
</ul>
<label
for=
"experiencia_laboral"
>
Experiencia laboral
</label>
<!-- Si no lo marca el valor que envia es null y si lo marca es "ON" -->
<input
id=
"experiencia_laboral"
name=
"experiencia_laboral"
type=
"checkbox"
><br>
<label
for=
"notebook"
>
Cuenta con notebook
</label>
<input
id=
"notebook"
name=
"notebook"
type=
"checkbox"
><br>
<label
for=
"universidad"
>
Estudio Universitario
</label>
<input
class=
"enviar info error"
type=
"submit"
>
<input
id=
"universidad"
name=
"universidad"
type=
"checkbox"
><br>
<input
class=
"enviar"
type=
"submit"
>
<input
class=
"borrar"
type=
"reset"
value=
"Borrar"
><br>
<input
class=
"borrar"
type=
"reset"
value=
"Borrar"
><br>
<a
href=
"index.html"
>
volver
</a>
<a
href=
"index.html"
>
volver
</a>
</form>
</form>
</article>
</article>
...
@@ -114,7 +116,6 @@ pageEncoding="UTF-8"%>
...
@@ -114,7 +116,6 @@ pageEncoding="UTF-8"%>
</body>
</body>
</html>
</html>
<script>
<script>
(
function
()
{
(
function
()
{
const
form
=
document
.
querySelector
(
'#agarraunolaputa'
);
const
form
=
document
.
querySelector
(
'#agarraunolaputa'
);
...
@@ -146,130 +147,3 @@ pageEncoding="UTF-8"%>
...
@@ -146,130 +147,3 @@ pageEncoding="UTF-8"%>
init
();
init
();
})();
})();
</script>
</script>
\ No newline at end of file
<style>
/* 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
:
10px
;
;
padding
:
15px
;
border-radius
:
10px
;
text-decoration
:
none
;
color
:
#ffff
;
text-align
:
left
;
cursor
:
pointer
;
width
:
80px
;
text-align
:
center
;
}
input
#ruby
,
input
#python
,
input
#c
,
input
#javascript
,
input
#java
{
width
:
20px
;
}
input
#experiencia_laboral
,
input
#notebook
,
input
#universidad
{
width
:
100px
;
}
/* parrafo final */
</style>
\ No newline at end of file
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