From 0fac5c8f980f165fdf111842be6955d7c319d92b Mon Sep 17 00:00:00 2001 From: Joel Date: Wed, 3 Nov 2021 16:08:15 -0300 Subject: [PATCH] listado basico --- curriculumsearch/src/main/java/com/roshka/controller/PostulanteController.java | 7 +++++++ curriculumsearch/src/main/java/com/roshka/repositorio/PostulanteRepository.java | 1 + curriculumsearch/src/main/webapp/jsp/postulante-form.jsp | 3 +-- curriculumsearch/src/main/webapp/jsp/postulantes.jsp | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 85 insertions(+), 2 deletions(-) create mode 100644 curriculumsearch/src/main/webapp/jsp/postulantes.jsp diff --git a/curriculumsearch/src/main/java/com/roshka/controller/PostulanteController.java b/curriculumsearch/src/main/java/com/roshka/controller/PostulanteController.java index 7bc3ab4..6643744 100644 --- a/curriculumsearch/src/main/java/com/roshka/controller/PostulanteController.java +++ b/curriculumsearch/src/main/java/com/roshka/controller/PostulanteController.java @@ -31,6 +31,13 @@ public class PostulanteController { return "index"; } + @RequestMapping("/postulantes") + public String postulantes(Model model) { + model.addAttribute("tecnologias", tecRepo.findAll()); + model.addAttribute("postulantes", post.findAll()); + return "postulantes"; + } + @RequestMapping("/postulante") public String getFormPostulante(Model model){ model.addAttribute("tecnologias", tecRepo.findAll()); diff --git a/curriculumsearch/src/main/java/com/roshka/repositorio/PostulanteRepository.java b/curriculumsearch/src/main/java/com/roshka/repositorio/PostulanteRepository.java index 5922701..19e1c7c 100644 --- a/curriculumsearch/src/main/java/com/roshka/repositorio/PostulanteRepository.java +++ b/curriculumsearch/src/main/java/com/roshka/repositorio/PostulanteRepository.java @@ -11,4 +11,5 @@ public interface PostulanteRepository extends JpaRepository { @Query("select p from Postulante p join p.estudios e on e.institucion LIKE %?1%") public List findByInstitucionEstudio(String institucion); + } diff --git a/curriculumsearch/src/main/webapp/jsp/postulante-form.jsp b/curriculumsearch/src/main/webapp/jsp/postulante-form.jsp index 1d1cfcd..1e95353 100644 --- a/curriculumsearch/src/main/webapp/jsp/postulante-form.jsp +++ b/curriculumsearch/src/main/webapp/jsp/postulante-form.jsp @@ -12,8 +12,7 @@ Hello, world! - - +