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
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
126 deletions
+2
-126
src/main/java/com/roshka/proyectofinal/Postulante/PostulanteDao.java
+0
-0
src/main/java/com/roshka/proyectofinal/Postulante/SaveServlet.java
+2
-23
src/main/java/com/roshka/proyectofinal/entity/Postulante.java
+0
-26
src/main/webapp/formulario.jsp
+0
-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 {
if
(
request
.
getParameter
(
"universidad"
)
!=
null
){
universidad
=
true
;
}
Bootcamp
bootcamp
=
new
Bootcamp
();
Postulante
postulante
=
new
Postulante
();
PostulanteLenguaje
cargarLenguaje
=
new
PostulanteLenguaje
();
int
status
=
0
;
...
...
@@ -105,25 +105,6 @@ public class SaveServlet extends HttpServlet {
}
}
}
<<<<<<<
HEAD
if
(
status
>
0
&&
statusLenguaje
>
0
){
//out.println("<script> window.alert('Postulacion exitosa') </script>");
out
.
print
(
"<p>Record saved successfully!</p>"
);
request
.
getRequestDispatcher
(
"formulario.jsp"
).
include
(
request
,
response
);
}
else
{
if
(
rechazarDatos
){
if
(
contador
==
0
){
out
.
println
(
"Debe seleccionar al menos una opcion de lenguaje que conoce para postularse"
);
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"
);
=======
int
status
=
PostulanteDao
.
save
(
postulante
);
if
(
status
>
0
){
//out.print("<p>Record saved successfully!</p>");
out
.
print
(
" <div class=\"alert\">\n"
+
...
...
@@ -133,7 +114,7 @@ public class SaveServlet extends HttpServlet {
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"
+
...
...
@@ -146,10 +127,8 @@ public class SaveServlet extends HttpServlet {
" <strong>Formulario ya Cargado!</strong> YA EXISTE EL FORMULARIO\n"
+
"</div>"
);
request
.
getRequestDispatcher
(
"formulario.jsp"
).
include
(
request
,
response
);
>>>>>>>
9
f750c7a848792df924b81bbb2c48da70f9d8765
}
}
}
catch
(
Exception
ex
){
ex
.
printStackTrace
();
}
...
...
src/main/java/com/roshka/proyectofinal/entity/Postulante.java
View file @
1f09e4cd
...
...
@@ -48,10 +48,6 @@ public class Postulante {
return
id
;
}
public
void
setId
(
int
id
)
{
this
.
id
=
id
;
}
public
int
getNro_cedula
()
{
return
nroCedula
;
}
...
...
@@ -123,35 +119,13 @@ public class Postulante {
this
.
id
=
id
;
}
public
int
getNroCedula
()
{
return
nroCedula
;
}
public
void
setNroCedula
(
int
nroCedula
)
{
this
.
nroCedula
=
nroCedula
;
}
public
String
getNombreBootcamp
()
{
return
nombreBootcamp
;
}
public
void
setNombreBootcamp
(
String
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 @@
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"
%
>
<
<<<<<<
HEAD
<!DOCTYPE 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>
<link
href=
"estilos/form.css"
rel=
"stylesheet"
type=
"text/css"
/>
...
...
@@ -29,32 +17,7 @@ pageEncoding="UTF-8"%>
<link
rel=
"stylesheet"
media=
"(max-width: 800px)"
href=
"example.css"
/>
<title>
Formulario Postulante
</title>
<
<<<<<<
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>
<header>
...
...
@@ -72,14 +35,6 @@ pageEncoding="UTF-8"%>
ResultSet
rs =
stmt.executeQuery("SELECT
*
FROM
bootcamp
WHERE
id=
"+id+ "
LIMIT
1
"
);
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>
<p>
...
...
@@ -87,39 +42,11 @@ pageEncoding="UTF-8"%>
</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"
>
=======
</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
")
%
>
">
<
<<<<<<
HEAD
<label
for=
"nombre"
>
Ingrese su Nombre:
</label>
<input
required
id=
"nombre"
name=
"nombre"
type=
"text"
><br>
...
...
@@ -220,6 +147,3 @@ pageEncoding="UTF-8"%>
init
();
})();
</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