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
1f09e4cd
Commit
1f09e4cd
authored
May 16, 2022
by
Yovan Martinez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Solucionando errores de merge
parent
55e461bf
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
144 deletions
+22
-144
src/main/java/com/roshka/proyectofinal/Postulante/PostulanteDao.java
+0
-0
src/main/java/com/roshka/proyectofinal/Postulante/SaveServlet.java
+20
-41
src/main/java/com/roshka/proyectofinal/entity/Postulante.java
+0
-26
src/main/webapp/formulario.jsp
+2
-77
No files found.
src/main/java/com/roshka/proyectofinal/Postulante/PostulanteDao.java
View file @
1f09e4cd
This diff is collapsed.
Click to expand it.
src/main/java/com/roshka/proyectofinal/Postulante/SaveServlet.java
View file @
1f09e4cd
...
@@ -69,7 +69,7 @@ public class SaveServlet extends HttpServlet {
...
@@ -69,7 +69,7 @@ public class SaveServlet extends HttpServlet {
if
(
request
.
getParameter
(
"universidad"
)
!=
null
){
if
(
request
.
getParameter
(
"universidad"
)
!=
null
){
universidad
=
true
;
universidad
=
true
;
}
}
Bootcamp
bootcamp
=
new
Bootcamp
();
Postulante
postulante
=
new
Postulante
();
Postulante
postulante
=
new
Postulante
();
PostulanteLenguaje
cargarLenguaje
=
new
PostulanteLenguaje
();
PostulanteLenguaje
cargarLenguaje
=
new
PostulanteLenguaje
();
int
status
=
0
;
int
status
=
0
;
...
@@ -105,51 +105,30 @@ public class SaveServlet extends HttpServlet {
...
@@ -105,51 +105,30 @@ public class SaveServlet extends HttpServlet {
}
}
}
}
}
}
<<<<<<<
HEAD
if
(
status
>
0
){
if
(
status
>
0
&&
statusLenguaje
>
0
){
//out.print("<p>Record saved successfully!</p>");
//out.println("<script> window.alert('Postulacion exitosa') </script>");
out
.
print
(
" <div class=\"alert\">\n"
+
out
.
print
(
"<p>Record saved successfully!</p>"
);
" <span class=\"closebtn\" onclick=\"this.parentElement.style.display='none';\">×</span> \n"
+
request
.
getRequestDispatcher
(
"formulario.jsp"
).
include
(
request
,
response
);
" <strong>Formulario Cargado!</strong> EXITOSAMENTE CARGADO\n"
+
}
else
{
"</div>"
);
if
(
rechazarDatos
){
request
.
getRequestDispatcher
(
"formulario.jsp"
).
include
(
request
,
response
);
if
(
contador
==
0
){
}
else
{
out
.
println
(
"Debe seleccionar al menos una opcion de lenguaje que conoce para postularse"
);
if
(
rechazarDatos
){
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>"
);
}
}
else
{
out
.
println
(
"Error"
);
=======
out
.
print
(
" <div class=\"alert info\">\n"
+
int
status
=
PostulanteDao
.
save
(
postulante
);
if
(
status
>
0
){
//out.print("<p>Record saved successfully!</p>");
out
.
print
(
" <div class=\"alert\">\n"
+
" <span class=\"closebtn\" onclick=\"this.parentElement.style.display='none';\">×</span> \n"
+
" <span class=\"closebtn\" onclick=\"this.parentElement.style.display='none';\">×</span> \n"
+
" <strong>Formulario Cargado!</strong> EXITOSAMENTE CARGADO\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"
+
"</div>"
);
"</div>"
);
request
.
getRequestDispatcher
(
"formulario.jsp"
).
include
(
request
,
response
);
request
.
getRequestDispatcher
(
"formulario.jsp"
).
include
(
request
,
response
);
}
else
{
if
(
rechazarDatos
){
//out.println("El correo ingresado ya esta registrado para el bootcamp actual");
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"
+
"</div>"
);
request
.
getRequestDispatcher
(
"formulario.jsp"
).
include
(
request
,
response
);
>>>>>>>
9
f750c7a848792df924b81bbb2c48da70f9d8765
}
}
}
}
}
catch
(
Exception
ex
){
}
catch
(
Exception
ex
){
ex
.
printStackTrace
();
ex
.
printStackTrace
();
}
}
...
...
src/main/java/com/roshka/proyectofinal/entity/Postulante.java
View file @
1f09e4cd
...
@@ -48,10 +48,6 @@ public class Postulante {
...
@@ -48,10 +48,6 @@ public class Postulante {
return
id
;
return
id
;
}
}
public
void
setId
(
int
id
)
{
this
.
id
=
id
;
}
public
int
getNro_cedula
()
{
public
int
getNro_cedula
()
{
return
nroCedula
;
return
nroCedula
;
}
}
...
@@ -123,35 +119,13 @@ public class Postulante {
...
@@ -123,35 +119,13 @@ public class Postulante {
this
.
id
=
id
;
this
.
id
=
id
;
}
}
public
int
getNroCedula
()
{
return
nroCedula
;
}
public
void
setNroCedula
(
int
nroCedula
)
{
public
void
setNroCedula
(
int
nroCedula
)
{
this
.
nroCedula
=
nroCedula
;
this
.
nroCedula
=
nroCedula
;
}
}
public
String
getNombreBootcamp
()
{
return
nombreBootcamp
;
}
public
void
setNombreBootcamp
(
String
nombreBootcamp
)
{
public
void
setNombreBootcamp
(
String
nombreBootcamp
)
{
this
.
nombreBootcamp
=
nombreBootcamp
;
this
.
nombreBootcamp
=
nombreBootcamp
;
}
}
public
boolean
isExpLaboral
()
{
return
expLaboral
;
}
public
boolean
isEstudioUniversitario
()
{
return
estudioUniversitario
;
}
public
boolean
isNotebook
()
{
return
notebook
;
}
public
boolean
isAceptado
()
{
return
aceptado
;
}
}
}
src/main/webapp/formulario.jsp
View file @
1f09e4cd
...
@@ -2,20 +2,8 @@
...
@@ -2,20 +2,8 @@
pageEncoding=
"UTF-8"
%
>
pageEncoding=
"UTF-8"
%
>
<
%@
page
import=
"java.sql.*,java.sql.Connection,java.sql.ResultSet,com.roshka.proyectofinal.DataBase,jakarta.servlet.http.HttpServlet,jakarta.servlet.http.HttpServletRequest"
%
>
<
%@
page
import=
"java.sql.*,java.sql.Connection,java.sql.ResultSet,com.roshka.proyectofinal.DataBase,jakarta.servlet.http.HttpServlet,jakarta.servlet.http.HttpServletRequest"
%
>
<
<<<<<<
HEAD
<!DOCTYPE html>
<!DOCTYPE html>
<html>
<html>
=======
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
<link
href=
"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"
>
<link
rel=
"stylesheet"
media=
"(max-width: 800px)"
href=
"example.css"
/>
<title>
Formulario Postulante
</title>
</head>
>>>>>>> 9f750c7a848792df924b81bbb2c48da70f9d8765
<head>
<head>
<link
href=
"estilos/form.css"
rel=
"stylesheet"
type=
"text/css"
/>
<link
href=
"estilos/form.css"
rel=
"stylesheet"
type=
"text/css"
/>
...
@@ -29,32 +17,7 @@ pageEncoding="UTF-8"%>
...
@@ -29,32 +17,7 @@ pageEncoding="UTF-8"%>
<link
rel=
"stylesheet"
media=
"(max-width: 800px)"
href=
"example.css"
/>
<link
rel=
"stylesheet"
media=
"(max-width: 800px)"
href=
"example.css"
/>
<title>
Formulario Postulante
</title>
<title>
Formulario Postulante
</title>
<
<<<<<<
HEAD
</head>
</head>
=======
<form
method=
"post"
action=
"SaveServlet"
class=
"form"
>
<label
class=
"mr-2"
for=
"nombre"
>
Ingrese su Nombre:
</label>
<input
required
id=
"nombre"
name=
"nombre"
type=
"text"
><br>
<label
for=
"apellido"
>
Ingrese su Apellido:
</label>
<input
required
id=
"apellido"
name=
"apellido"
type=
"text"
><br>
<label
for=
"cedula"
>
Numero de cedula:
</label>
<input
required
id=
"cedula"
name=
"cedula"
type=
"number"
><br>
<label
for=
"correo"
>
Correo:
</label>
<input
required
id=
"correo"
name=
"correo"
type=
"email"
><br>
<label
for=
"telefono"
>
Telefono:
</label>
<input
required
id=
"telefono"
name=
"telefono"
type=
"text"
><br>
<label
for=
"direccion"
>
Direccion:
</label>
<input
required
id=
"direccion"
name=
"direccion"
type=
"text"
><br>
<
%@
page
import=
"com.roshka.proyectofinal.entity.Lenguaje, com.roshka.proyectofinal.lenguaje.LenguajeDao, java.util.List,java.util.Iterator"
%
>
>>>>>>> 9f750c7a848792df924b81bbb2c48da70f9d8765
<body>
<body>
<header>
<header>
...
@@ -72,14 +35,6 @@ pageEncoding="UTF-8"%>
...
@@ -72,14 +35,6 @@ pageEncoding="UTF-8"%>
ResultSet
rs =
stmt.executeQuery("SELECT
*
FROM
bootcamp
WHERE
id=
"+id+ "
LIMIT
1
"
);
ResultSet
rs =
stmt.executeQuery("SELECT
*
FROM
bootcamp
WHERE
id=
"+id+ "
LIMIT
1
"
);
rs
.
next
();
rs
.
next
();
%
>
%
>
<
<<<<<<
HEAD
=
======
<
li
class=
"d-flex check-inline"
>
<label
for=
<%=len.getNombre_lenguaje()
%
>
>
<
%=
len
.
getNombre_lenguaje
()
%
>
</label><input
value=
<%=len.getId()
%
>
id=
<
%=
len
.
getNombre_lenguaje
()
%
>
name=
<
%=
len
.
getNombre_lenguaje
()
%
>
type="checkbox">
<br>
</li>
>>>>>>> 9f750c7a848792df924b81bbb2c48da70f9d8765
<h2>
Descripcion:
</h2>
<h2>
Descripcion:
</h2>
<p>
<p>
...
@@ -87,39 +42,11 @@ pageEncoding="UTF-8"%>
...
@@ -87,39 +42,11 @@ 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>
<
<<<<<<
HEAD
<form
method=
"post"
action=
"SaveServlet"
class=
"form"
>
<form
method=
"post"
action=
"SaveServlet"
class=
"form"
>
=======
</ul>
<li
class=
"d-flex"
>
<label
for=
"experiencia_laboral"
>
Experiencia laboral
</label>
</li>
<!-- 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>
<p
for=
"experiencia_programando"
>
Lenguajes de programacion que conoces:
</p>
<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>
<input
class=
"enviar info error"
type=
"submit"
>
<input
class=
"borrar"
type=
"reset"
value=
"Borrar"
><br>
<label
for=
"otro"
>
otro
</label>
<input
id=
"otro"
name=
"otro"
type=
"checkbox"
><br>
<a
href=
"index.html"
>
volver
</a>
</form>
</article>
>>>>>>> 9f750c7a848792df924b81bbb2c48da70f9d8765
<input
type=
"hidden"
name=
"bootcamp_id"
value=
"<%= request.getParameter("
bootcamp
")
%
>
">
<input
type=
"hidden"
name=
"bootcamp_id"
value=
"<%= request.getParameter("
bootcamp
")
%
>
">
<
<<<<<<
HEAD
<label
for=
"nombre"
>
Ingrese su Nombre:
</label>
<label
for=
"nombre"
>
Ingrese su Nombre:
</label>
<input
required
id=
"nombre"
name=
"nombre"
type=
"text"
><br>
<input
required
id=
"nombre"
name=
"nombre"
type=
"text"
><br>
...
@@ -219,7 +146,4 @@ pageEncoding="UTF-8"%>
...
@@ -219,7 +146,4 @@ pageEncoding="UTF-8"%>
}
}
init
();
init
();
})();
})();
</script>
</script>
=======
\ No newline at end of file
>>>>>>> 9f750c7a848792df924b81bbb2c48da70f9d8765
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