\n" +
- " × \n" +
- " Formulario ya Cargado! YA EXISTE EL FORMULARIO\n" +
- "
");
- request.getRequestDispatcher("formulario.jsp").include(request, response);
- }
}
-
- }catch (Exception ex){
- ex.printStackTrace();
+ }
+ } catch (Exception ex) {
+ ex.printStackTrace();
}
out.close();
}
diff --git a/src/main/java/com/roshka/proyectofinal/entity/Postulante.java b/src/main/java/com/roshka/proyectofinal/entity/Postulante.java
index dd21dc7..2f77c87 100644
--- a/src/main/java/com/roshka/proyectofinal/entity/Postulante.java
+++ b/src/main/java/com/roshka/proyectofinal/entity/Postulante.java
@@ -44,9 +44,34 @@ public class Postulante {
this.aceptado = aceptado;
}
+ public int getNroCedula() {
+ return nroCedula;
+ }
+
+ public String getNombreBootcamp() {
+ return nombreBootcamp;
+ }
+
+ public boolean isExpLaboral() {
+ return expLaboral;
+ }
+
+ public boolean isEstudioUniversitario() {
+ return estudioUniversitario;
+ }
+
+ public boolean isNotebook() {
+ return notebook;
+ }
+
+ public boolean isAceptado() {
+ return aceptado;
+ }
+
public int getId() {
return id;
}
+
public int getNro_cedula() {
return nroCedula;
}
@@ -118,35 +143,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;
- }
}
diff --git a/src/main/webapp/Javascript.js b/src/main/webapp/Javascript.js
index e69de29..b40dba6 100644
--- a/src/main/webapp/Javascript.js
+++ b/src/main/webapp/Javascript.js
@@ -0,0 +1,29 @@
+(function() {
+ const form = document.querySelector('#agarraunolaputa');
+ const checkboxes = form.querySelectorAll('input[type=checkbox]');
+ const checkboxLength = checkboxes.length;
+ const firstCheckbox = checkboxLength > 0 ? checkboxes[0] : null;
+
+ function init() {
+ if (firstCheckbox) {
+ for (let i = 0; i < checkboxLength; i++) {
+ checkboxes[i].addEventListener('change', checkValidity);
+ }
+
+ checkValidity();
+ }
+ }
+
+ function isChecked() {
+ for (let i = 0; i < checkboxLength; i++) {
+ if (checkboxes[i].checked) return true;
+ }
+ return false;
+ }
+
+ function checkValidity() {
+ const errorMessage = !isChecked() ? 'Debe seleccionar al menos un lenguaje que conozca' : '';
+ firstCheckbox.setCustomValidity(errorMessage);
+ }
+ init();
+})();
\ No newline at end of file
diff --git a/src/main/webapp/bootcamp.html b/src/main/webapp/bootcamp.html
deleted file mode 100644
index c05df6a..0000000
--- a/src/main/webapp/bootcamp.html
+++ /dev/null
@@ -1,204 +0,0 @@
-
-
-
-
-
- Bootcamp
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
¿QUE ES UN BOOTCAMP?
-
-
ES UN CAMPO DE ENTRENAMIENTO INTENSIVO Y GRATUITO PARA PRINCIPIANTES QUE YA PROGRAMAN Y QUIEREN SER PARTE DE LA EMPRESA
-
-
¿CUANTOS MESES DURA EL ENTRENAMIENTO Y CUAL ES SU HORARIO?
-
-
AL SER INTENSIVO Y TENIENDO EN CUENTA QUE LOS ASPIRANTES DEBEN FINALIZARLO CON UN CONOCIMIENTO APTO PARA REALIZAR UN PROYECTO DEL ÁREA, SE DA COMO LAPSO DE TIEMPO UN MES CON UN HORARIO DE 8:00 A 18:00 HS