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
ae9d434c
Commit
ae9d434c
authored
May 16, 2022
by
Jose Baez
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'conexion-paginas' into 'develop'
Conexion paginas See merge request
!25
parents
1fbbca11
b54142c9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
77 additions
and
23 deletions
+77
-23
src/main/java/com/roshka/proyectofinal/Postulante/SaveServlet.java
+18
-4
src/main/webapp/formulario.jsp
+57
-18
src/main/webapp/index.html
+2
-1
src/main/webapp/usrebe.css
+0
-0
No files found.
src/main/java/com/roshka/proyectofinal/Postulante/SaveServlet.java
View file @
ae9d434c
...
...
@@ -80,13 +80,27 @@ public class SaveServlet extends HttpServlet {
}
int
status
=
PostulanteDao
.
save
(
postulante
);
if
(
status
>
0
){
out
.
print
(
"<p>Record saved successfully!</p>"
);
request
.
getRequestDispatcher
(
"index.html"
).
include
(
request
,
response
);
//out.print("<p>Record saved successfully!</p>");
out
.
print
(
" <div class=\"alert\">\n"
+
" <span class=\"closebtn\" onclick=\"this.parentElement.style.display='none';\">×</span> \n"
+
" <strong>Formulario Cargado!</strong> EXITOSAMENTE CARGADO\n"
+
"</div>"
);
request
.
getRequestDispatcher
(
"formulario.jsp"
).
include
(
request
,
response
);
}
else
{
if
(
rechazarDatos
){
out
.
println
(
"El correo ingresado ya esta registrado para el bootcamp actual"
);
//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
(
"Sorry! unable to save record"
);
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
);
}
}
...
...
src/main/webapp/formulario.jsp
View file @
ae9d434c
...
...
@@ -8,6 +8,8 @@ pageEncoding="UTF-8"%>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
<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"
>
<link
rel=
"stylesheet"
media=
"(max-width: 800px)"
href=
"example.css"
/>
<title>
Formulario Postulante
</title>
</head>
...
...
@@ -25,7 +27,7 @@ pageEncoding="UTF-8"%>
<form
method=
"post"
action=
"SaveServlet"
class=
"form"
>
<label
for=
"nombre"
>
Ingrese su Nombre:
</label>
<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>
...
...
@@ -59,8 +61,8 @@ pageEncoding="UTF-8"%>
len =
iter.next();
%
>
<li>
<label
for=
<%=len.getNombre_lenguaje()
%
>
>
<
%=
len
.
getNombre_lenguaje
()
%
>
</label><input
value=
<%=len.getId()
%
>
id=
<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>
...
...
@@ -68,8 +70,9 @@ pageEncoding="UTF-8"%>
<
%
}
%
>
</ul>
<label
for=
"experiencia_laboral"
>
Experiencia laboral
</label>
<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>
...
...
@@ -80,9 +83,11 @@ pageEncoding="UTF-8"%>
<label
for=
"universidad"
>
Estudio Universitario
</label>
<input
id=
"universidad"
name=
"universidad"
type=
"checkbox"
><br>
<input
class=
"enviar
"
type=
"submit"
>
<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>
...
...
@@ -142,11 +147,9 @@ p:hover{
/* contenedor */
/* para el forrmulario */
.form
label
{
display
:
block
;
border
:
none
;
align-items
:
center
;
border
:
none
;
align-items
:
center
;
}
...
...
@@ -193,9 +196,10 @@ border-radius: 10px;
text-decoration
:
none
;
background-color
:
rgba
(
11
,
49
,
110
,
0.75
);
background-image
:
url(imagenes/descarga.svg)
;
border-radius
:
10
px
;
;
padding
:
1
5
px
;
border-radius
:
5
px
;
;
padding
:
1
0
px
;
border-radius
:
10px
;
margin
:
10px
;
text-decoration
:
none
;
color
:
#ffff
;
text-align
:
left
;
...
...
@@ -203,17 +207,52 @@ border-radius: 10px;
width
:
80px
;
text-align
:
center
;
}
/*hola mundo*/
input
#ruby
,
input
#python
,
input
#c
,
input
#javascript
,
input
#java
{
width
:
2
0px
;
width
:
3
0px
;
}
input
#experiencia_laboral
,
input
#notebook
,
input
#universidad
{
width
:
1
00px
;
width
:
5
00px
;
}
/* parrafo final */
/* para el alert */
.alert
{
padding
:
10px
;
background-color
:
background-color
:
#2196F3
;
color
:
white
;
}
</style>
\ No newline at end of file
.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
;
}
</style>
<script>
var
close
=
document
.
getElementsByClassName
(
"enviar"
);
var
i
;
for
(
i
=
0
;
i
<
close
.
length
;
i
++
)
{
close
[
i
].
onclick
=
function
(){
var
div
=
this
.
parentElement
;
div
.
style
.
opacity
=
"0"
;
setTimeout
(
function
(){
div
.
style
.
display
=
"none"
;
},
600
);
}
}
</script>
\ No newline at end of file
src/main/webapp/index.html
View file @
ae9d434c
...
...
@@ -16,6 +16,7 @@
<title>
Roshka WebSite
</title>
</head>
<div
class=
"header"
>
<div
class=
"logo"
>
<a
href=
"./index.html"
>
<img
class=
"logoi"
src=
"imagenes/logo-roshka.svg"
alt=
""
/>
</a>
...
...
@@ -56,7 +57,7 @@
<p
data-block-key=
"cwggy"
>
Es un campo de entrenamiento intensivo y gratuito para principiantes que ya programan y quieren ser parte de la empresa
</p>
</div>
<div
class=
"postulacion"
>
<
button
type=
"submit"
class=
"cta-main"
>
POSTULACION
</button
>
<
a
href=
"formulario.jsp"
><button
type=
"submit"
class=
"cta-main"
>
POSTULACION
</button></a
>
<!-- <a href="/postulacion" class="cta-main">POSTULACION</a> -->
</div>
</div>
...
...
src/main/webapp/usrebe.css
View file @
ae9d434c
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