diff --git a/src/main/java/Postulante/SaveServlet.java b/src/main/java/Postulante/SaveServlet.java index 20051b8..6e7105d 100644 --- a/src/main/java/Postulante/SaveServlet.java +++ b/src/main/java/Postulante/SaveServlet.java @@ -1,5 +1,6 @@ package Postulante; import com.roshka.proyectofinal.Postulante; +import com.roshka.proyectofinal.entity.Bootcamp; import jakarta.servlet.ServletException; import jakarta.servlet.annotation.WebServlet; import jakarta.servlet.http.HttpServletRequest; @@ -8,7 +9,7 @@ import java.io.IOException; import java.io.PrintWriter; -@WebServlet("/SaveServlet") +@WebServlet("../java/Postulante/SaveServlet") public class SaveServlet { protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { @@ -24,6 +25,7 @@ public class SaveServlet { boolean experienciaProgramando = false; boolean experienciaLaboral = false; boolean universidad = false; + boolean notebook = false; if (request.getParameter("experiencia_laboral") != null){ experienciaLaboral = true; } @@ -31,13 +33,13 @@ public class SaveServlet { experienciaProgramando = true; } if (request.getParameter("notebook") != null){ - boolean notebook = true; + notebook = true; } if (request.getParameter("universidad") != null){ universidad = true; } - + Bootcamp bootcamp = new Bootcamp(); Postulante postulante=new Postulante(); postulante.setNombre(nombre); postulante.setApellido(apellido); @@ -47,6 +49,8 @@ public class SaveServlet { postulante.setDireccion(direccion); postulante.setExpLaboral(experienciaLaboral); postulante.setEstudioUniversitario(universidad); + postulante.setNotebook(notebook); + postulante.setBootcampId(1); int status=PostulanteDao.save(postulante); diff --git a/src/main/webapp/Javascript.js b/src/main/webapp/Javascript.js new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/src/main/webapp/Javascript.js diff --git a/src/main/webapp/formulario.html b/src/main/webapp/formulario.html index 359d3cb..1b41c15 100644 --- a/src/main/webapp/formulario.html +++ b/src/main/webapp/formulario.html @@ -16,7 +16,7 @@

Si sigues interesado y cumples con los requisitos, completa el siguiente formulario:

-
+
@@ -40,9 +40,18 @@
- +
+ + + + + + + + +
diff --git a/src/main/webapp/index.jsp b/src/main/webapp/index.jsp index dd88878..bff22f6 100644 --- a/src/main/webapp/index.jsp +++ b/src/main/webapp/index.jsp @@ -1,13 +1,18 @@ <%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> - - - - JSP - Hello World - - -

<%= "Hello World!" %> -

-
-Hello Servlet - - \ No newline at end of file + + + + + JSP - Hello World + + + +

+ <%= "Hello World!" %> +

+
+ Hello Servlet
+ Postulate aqui + + + \ No newline at end of file