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
6e153395
Commit
6e153395
authored
May 18, 2022
by
Nahuel Mereles Rodriguez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Agregando condicional para mandar mails solo al aceptar un postulante
parent
452970fa
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/main/java/com/roshka/proyectofinal/Postulante/Filtros.java
+2
-0
src/main/webapp/postulante-consulta.jsp
+0
-2
No files found.
src/main/java/com/roshka/proyectofinal/Postulante/Filtros.java
View file @
6e153395
...
@@ -34,6 +34,7 @@ public class Filtros extends HttpServlet {
...
@@ -34,6 +34,7 @@ public class Filtros extends HttpServlet {
System
.
out
.
println
(
respuesta
);
System
.
out
.
println
(
respuesta
);
update
(
Integer
.
parseInt
(
req
.
getParameter
(
"id"
)),
valor
);
update
(
Integer
.
parseInt
(
req
.
getParameter
(
"id"
)),
valor
);
postulantes
=
listarPostulante
();
postulantes
=
listarPostulante
();
if
(
valor
.
equals
(
"1"
))
{
try
{
try
{
SendMail
send
=
new
SendMail
();
SendMail
send
=
new
SendMail
();
send
.
sendingMail
(
correo_postulante
,
nombre_postulante
,
apellido_postulante
,
bootcamp_id
);
send
.
sendingMail
(
correo_postulante
,
nombre_postulante
,
apellido_postulante
,
bootcamp_id
);
...
@@ -45,6 +46,7 @@ public class Filtros extends HttpServlet {
...
@@ -45,6 +46,7 @@ public class Filtros extends HttpServlet {
}
catch
(
MessagingException
e
)
{
}
catch
(
MessagingException
e
)
{
throw
new
RuntimeException
(
e
);
throw
new
RuntimeException
(
e
);
}
}
}
}
else
if
(
nombre
.
length
()
>
1
){
}
else
if
(
nombre
.
length
()
>
1
){
postulantes
=
buscarPorNombre
(
nombre
);
postulantes
=
buscarPorNombre
(
nombre
);
}
}
...
...
src/main/webapp/postulante-consulta.jsp
View file @
6e153395
...
@@ -130,8 +130,6 @@
...
@@ -130,8 +130,6 @@
<input
type=
"hidden"
name=
"apellido"
value=
"${postulante.apellido}"
>
<input
type=
"hidden"
name=
"apellido"
value=
"${postulante.apellido}"
>
<input
type=
"hidden"
name=
"correo"
value=
"${postulante.correo}"
>
<input
type=
"hidden"
name=
"correo"
value=
"${postulante.correo}"
>
<input
type=
"hidden"
name=
"bootcamp_id"
value=
"${postulante.bootcamp_id}"
>
<input
type=
"hidden"
name=
"bootcamp_id"
value=
"${postulante.bootcamp_id}"
>
<button
type=
"submit"
>
Rechazar
</button>
<button
type=
"submit"
>
Aceptado
</button>
<button
type=
"submit"
>
Aceptado
</button>
</form>
</form>
</c:otherwise>
</c:otherwise>
...
...
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