oneSupplierRowOfTable
+ = createMapOfSupplier(
+ "s1" + i,
+ "Johnson" + i,
+ Integer.toString(20 + i),
+ "london" + i);
+ suppliers.add(oneSupplierRowOfTable);
+ }
+
+ JsonObject j = createJsonObjectForSuppliers(suppliers);
+ return j.toString();
+ }
+
+ public static void writeJsonToTextFile( JsonObject jo)
+ throws FileNotFoundException
+ {
+ String joString = jo.toString();
+ PrintWriter output = new PrintWriter(new FileOutputStream("jo.json", true));
+ output.print(joString);
+ output.close();
+ }
+ public static JsonObject readTextFileIntoJson( String fileName)
+ throws FileNotFoundException
+ {
+ File file = new java.io.File(fileName);
+ Scanner input = new Scanner(file);
+ String joString = "";
+ while (input.hasNext())
+ {
+ joString += input.next();
+ }
+ input.close();
+ JsonObject jo = createJsonObjectFromString( joString);
+ return jo;
+ }
+
+
+}
diff --git a/Semester 3/Exams-Quizzes/FinalExamProblem2_CalebFontenot/src/main/java/edu/slcc/asdv/caleb/finalexamproblem2_calebfontenot/JakartaRestConfiguration.java b/Semester 3/Exams-Quizzes/FinalExamProblem2_CalebFontenot/src/main/java/edu/slcc/asdv/caleb/finalexamproblem2_calebfontenot/JakartaRestConfiguration.java
new file mode 100644
index 0000000..6cb8d99
--- /dev/null
+++ b/Semester 3/Exams-Quizzes/FinalExamProblem2_CalebFontenot/src/main/java/edu/slcc/asdv/caleb/finalexamproblem2_calebfontenot/JakartaRestConfiguration.java
@@ -0,0 +1,13 @@
+package edu.slcc.asdv.caleb.finalexamproblem2_calebfontenot;
+
+import jakarta.ws.rs.ApplicationPath;
+import jakarta.ws.rs.core.Application;
+
+/**
+ * Configures Jakarta RESTful Web Services for the application.
+ * @author Juneau
+ */
+@ApplicationPath("resources")
+public class JakartaRestConfiguration extends Application {
+
+}
diff --git a/Semester 3/Exams-Quizzes/FinalExamProblem2_CalebFontenot/src/main/java/edu/slcc/asdv/caleb/finalexamproblem2_calebfontenot/resources/JakartaEE10Resource.java b/Semester 3/Exams-Quizzes/FinalExamProblem2_CalebFontenot/src/main/java/edu/slcc/asdv/caleb/finalexamproblem2_calebfontenot/resources/JakartaEE10Resource.java
new file mode 100644
index 0000000..64961f9
--- /dev/null
+++ b/Semester 3/Exams-Quizzes/FinalExamProblem2_CalebFontenot/src/main/java/edu/slcc/asdv/caleb/finalexamproblem2_calebfontenot/resources/JakartaEE10Resource.java
@@ -0,0 +1,20 @@
+package edu.slcc.asdv.caleb.finalexamproblem2_calebfontenot.resources;
+
+import jakarta.ws.rs.GET;
+import jakarta.ws.rs.Path;
+import jakarta.ws.rs.core.Response;
+
+/**
+ *
+ * @author
+ */
+@Path("jakartaee10")
+public class JakartaEE10Resource {
+
+ @GET
+ public Response ping(){
+ return Response
+ .ok("ping Jakarta EE")
+ .build();
+ }
+}
diff --git a/Semester 3/Exams-Quizzes/FinalExamProblem2_CalebFontenot/src/main/resources/META-INF/persistence.xml b/Semester 3/Exams-Quizzes/FinalExamProblem2_CalebFontenot/src/main/resources/META-INF/persistence.xml
new file mode 100644
index 0000000..7582bf1
--- /dev/null
+++ b/Semester 3/Exams-Quizzes/FinalExamProblem2_CalebFontenot/src/main/resources/META-INF/persistence.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
diff --git a/Semester 3/Exams-Quizzes/FinalExamProblem2_CalebFontenot/src/main/webapp/WEB-INF/beans.xml b/Semester 3/Exams-Quizzes/FinalExamProblem2_CalebFontenot/src/main/webapp/WEB-INF/beans.xml
new file mode 100644
index 0000000..9dfae34
--- /dev/null
+++ b/Semester 3/Exams-Quizzes/FinalExamProblem2_CalebFontenot/src/main/webapp/WEB-INF/beans.xml
@@ -0,0 +1,6 @@
+
+
+
\ No newline at end of file
diff --git a/Semester 3/Exams-Quizzes/FinalExamProblem2_CalebFontenot/src/main/webapp/WEB-INF/glassfish-web.xml b/Semester 3/Exams-Quizzes/FinalExamProblem2_CalebFontenot/src/main/webapp/WEB-INF/glassfish-web.xml
new file mode 100644
index 0000000..673cc06
--- /dev/null
+++ b/Semester 3/Exams-Quizzes/FinalExamProblem2_CalebFontenot/src/main/webapp/WEB-INF/glassfish-web.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+ Keep a copy of the generated servlet class' java code.
+
+
+
diff --git a/Semester 3/Exams-Quizzes/FinalExamProblem2_CalebFontenot/src/main/webapp/WEB-INF/web.xml b/Semester 3/Exams-Quizzes/FinalExamProblem2_CalebFontenot/src/main/webapp/WEB-INF/web.xml
new file mode 100644
index 0000000..fcfcd54
--- /dev/null
+++ b/Semester 3/Exams-Quizzes/FinalExamProblem2_CalebFontenot/src/main/webapp/WEB-INF/web.xml
@@ -0,0 +1,24 @@
+
+
+
+ jakarta.faces.PROJECT_STAGE
+ Development
+
+
+ Faces Servlet
+ jakarta.faces.webapp.FacesServlet
+ 1
+
+
+ Faces Servlet
+ /faces/*
+
+
+
+ 30
+
+
+
+ faces/index.xhtml
+
+
diff --git a/Semester 3/Exams-Quizzes/FinalExamProblem2_CalebFontenot/src/main/webapp/index.xhtml b/Semester 3/Exams-Quizzes/FinalExamProblem2_CalebFontenot/src/main/webapp/index.xhtml
new file mode 100644
index 0000000..834d42a
--- /dev/null
+++ b/Semester 3/Exams-Quizzes/FinalExamProblem2_CalebFontenot/src/main/webapp/index.xhtml
@@ -0,0 +1,16 @@
+
+
+
+
+ Facelet Title
+
+
+
+
+
+
diff --git a/Semester 3/Exams-Quizzes/FinalExamProblem3_CalebFontenot/nb-configuration.xml b/Semester 3/Exams-Quizzes/FinalExamProblem3_CalebFontenot/nb-configuration.xml
new file mode 100644
index 0000000..b98110a
--- /dev/null
+++ b/Semester 3/Exams-Quizzes/FinalExamProblem3_CalebFontenot/nb-configuration.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ 10-web
+ gfv700ee10
+ ide
+ Facelets
+
+
diff --git a/Semester 3/Exams-Quizzes/FinalExamProblem3_CalebFontenot/pom.xml b/Semester 3/Exams-Quizzes/FinalExamProblem3_CalebFontenot/pom.xml
new file mode 100644
index 0000000..917891a
--- /dev/null
+++ b/Semester 3/Exams-Quizzes/FinalExamProblem3_CalebFontenot/pom.xml
@@ -0,0 +1,48 @@
+
+ 4.0.0
+ edu.slcc.asdv.caleb
+ FinalExamProblem3_CalebFontenot
+ 1.0-SNAPSHOT
+ war
+ FinalExamProblem3_CalebFontenot-1.0-SNAPSHOT
+
+
+ UTF-8
+ 10.0.0
+
+
+
+
+ jakarta.platform
+ jakarta.jakartaee-api
+ ${jakartaee}
+ provided
+
+
+ org.primefaces
+ primefaces
+ 14.0.0-RC2
+ jakarta
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ 3.8.1
+
+
+ 11
+
+
+
+ org.apache.maven.plugins
+ maven-war-plugin
+ 3.3.2
+
+
+
+
\ No newline at end of file
diff --git a/Semester 3/Exams-Quizzes/FinalExamProblem3_CalebFontenot/src/main/java/beans/slideMenuBean.java b/Semester 3/Exams-Quizzes/FinalExamProblem3_CalebFontenot/src/main/java/beans/slideMenuBean.java
new file mode 100644
index 0000000..5986fae
--- /dev/null
+++ b/Semester 3/Exams-Quizzes/FinalExamProblem3_CalebFontenot/src/main/java/beans/slideMenuBean.java
@@ -0,0 +1,50 @@
+/*
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
+ * Click nbfs://nbhost/SystemFileSystem/Templates/JSF/JSFManagedBean.java to edit this template
+ */
+
+package beans;
+
+import jakarta.inject.Named;
+import jakarta.enterprise.context.SessionScoped;
+import java.io.Serializable;
+
+/**
+ *
+ * @author caleb
+ */
+@Named(value="slideMenuBean")
+@SessionScoped
+public class slideMenuBean implements Serializable{
+ private boolean menuVisable;
+ public boolean isMenuVisable() { return menuVisable; }
+ public void toggleSlideMenu() { menuVisable = !menuVisable; }
+ private String out;
+ public String getOut() { return out; }
+ public void setOut(String out) { this.out = out; }
+
+ public void handleMenuSelection(int selection) {
+ String selectedMenuItem;
+ switch (selection) {
+ case 0:
+ selectedMenuItem = "save";
+ break;
+ case 1:
+ selectedMenuItem = "update";
+ break;
+ case 2:
+ selectedMenuItem = "delete";
+ break;
+ default:
+ selectedMenuItem = "unknown";
+ break;
+ }
+ out = "You selected " + selectedMenuItem;
+ System.out.println(out);
+ }
+
+ /** Creates a new instance of slideMenuBean */
+ public slideMenuBean() {
+ }
+
+}
diff --git a/Semester 3/Exams-Quizzes/FinalExamProblem3_CalebFontenot/src/main/java/edu/slcc/asdv/caleb/finalexamproblem3_calebfontenot/JakartaRestConfiguration.java b/Semester 3/Exams-Quizzes/FinalExamProblem3_CalebFontenot/src/main/java/edu/slcc/asdv/caleb/finalexamproblem3_calebfontenot/JakartaRestConfiguration.java
new file mode 100644
index 0000000..f2b9189
--- /dev/null
+++ b/Semester 3/Exams-Quizzes/FinalExamProblem3_CalebFontenot/src/main/java/edu/slcc/asdv/caleb/finalexamproblem3_calebfontenot/JakartaRestConfiguration.java
@@ -0,0 +1,13 @@
+package edu.slcc.asdv.caleb.finalexamproblem3_calebfontenot;
+
+import jakarta.ws.rs.ApplicationPath;
+import jakarta.ws.rs.core.Application;
+
+/**
+ * Configures Jakarta RESTful Web Services for the application.
+ * @author Juneau
+ */
+@ApplicationPath("resources")
+public class JakartaRestConfiguration extends Application {
+
+}
diff --git a/Semester 3/Exams-Quizzes/FinalExamProblem3_CalebFontenot/src/main/java/edu/slcc/asdv/caleb/finalexamproblem3_calebfontenot/resources/JakartaEE10Resource.java b/Semester 3/Exams-Quizzes/FinalExamProblem3_CalebFontenot/src/main/java/edu/slcc/asdv/caleb/finalexamproblem3_calebfontenot/resources/JakartaEE10Resource.java
new file mode 100644
index 0000000..c883039
--- /dev/null
+++ b/Semester 3/Exams-Quizzes/FinalExamProblem3_CalebFontenot/src/main/java/edu/slcc/asdv/caleb/finalexamproblem3_calebfontenot/resources/JakartaEE10Resource.java
@@ -0,0 +1,20 @@
+package edu.slcc.asdv.caleb.finalexamproblem3_calebfontenot.resources;
+
+import jakarta.ws.rs.GET;
+import jakarta.ws.rs.Path;
+import jakarta.ws.rs.core.Response;
+
+/**
+ *
+ * @author
+ */
+@Path("jakartaee10")
+public class JakartaEE10Resource {
+
+ @GET
+ public Response ping(){
+ return Response
+ .ok("ping Jakarta EE")
+ .build();
+ }
+}
diff --git a/Semester 3/Exams-Quizzes/FinalExamProblem3_CalebFontenot/src/main/resources/META-INF/persistence.xml b/Semester 3/Exams-Quizzes/FinalExamProblem3_CalebFontenot/src/main/resources/META-INF/persistence.xml
new file mode 100644
index 0000000..7582bf1
--- /dev/null
+++ b/Semester 3/Exams-Quizzes/FinalExamProblem3_CalebFontenot/src/main/resources/META-INF/persistence.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
diff --git a/Semester 3/Exams-Quizzes/FinalExamProblem3_CalebFontenot/src/main/webapp/WEB-INF/beans.xml b/Semester 3/Exams-Quizzes/FinalExamProblem3_CalebFontenot/src/main/webapp/WEB-INF/beans.xml
new file mode 100644
index 0000000..9dfae34
--- /dev/null
+++ b/Semester 3/Exams-Quizzes/FinalExamProblem3_CalebFontenot/src/main/webapp/WEB-INF/beans.xml
@@ -0,0 +1,6 @@
+
+
+
\ No newline at end of file
diff --git a/Semester 3/Exams-Quizzes/FinalExamProblem3_CalebFontenot/src/main/webapp/WEB-INF/glassfish-web.xml b/Semester 3/Exams-Quizzes/FinalExamProblem3_CalebFontenot/src/main/webapp/WEB-INF/glassfish-web.xml
new file mode 100644
index 0000000..673cc06
--- /dev/null
+++ b/Semester 3/Exams-Quizzes/FinalExamProblem3_CalebFontenot/src/main/webapp/WEB-INF/glassfish-web.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+ Keep a copy of the generated servlet class' java code.
+
+
+
diff --git a/Semester 3/Exams-Quizzes/FinalExamProblem3_CalebFontenot/src/main/webapp/WEB-INF/web.xml b/Semester 3/Exams-Quizzes/FinalExamProblem3_CalebFontenot/src/main/webapp/WEB-INF/web.xml
new file mode 100644
index 0000000..fcfcd54
--- /dev/null
+++ b/Semester 3/Exams-Quizzes/FinalExamProblem3_CalebFontenot/src/main/webapp/WEB-INF/web.xml
@@ -0,0 +1,24 @@
+
+
+
+ jakarta.faces.PROJECT_STAGE
+ Development
+
+
+ Faces Servlet
+ jakarta.faces.webapp.FacesServlet
+ 1
+
+
+ Faces Servlet
+ /faces/*
+
+
+
+ 30
+
+
+
+ faces/index.xhtml
+
+
diff --git a/Semester 3/Exams-Quizzes/FinalExamProblem3_CalebFontenot/src/main/webapp/index.xhtml b/Semester 3/Exams-Quizzes/FinalExamProblem3_CalebFontenot/src/main/webapp/index.xhtml
new file mode 100644
index 0000000..76c247f
--- /dev/null
+++ b/Semester 3/Exams-Quizzes/FinalExamProblem3_CalebFontenot/src/main/webapp/index.xhtml
@@ -0,0 +1,25 @@
+
+
+
+
+ Facelet Title
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Semester 3/Exams-Quizzes/Problem2Final2800/nb-configuration.xml b/Semester 3/Exams-Quizzes/Problem2Final2800/nb-configuration.xml
new file mode 100644
index 0000000..ea4eb8b
--- /dev/null
+++ b/Semester 3/Exams-Quizzes/Problem2Final2800/nb-configuration.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ 10-web
+ gfv700ee10
+ Facelets
+ ide
+
+
diff --git a/Semester 3/Exams-Quizzes/Problem2Final2800/pom.xml b/Semester 3/Exams-Quizzes/Problem2Final2800/pom.xml
new file mode 100644
index 0000000..4684100
--- /dev/null
+++ b/Semester 3/Exams-Quizzes/Problem2Final2800/pom.xml
@@ -0,0 +1,42 @@
+
+ 4.0.0
+ asdv
+ Problem2Final2800
+ 1
+ war
+ Problem2Final2800-1
+
+
+ UTF-8
+ 10.0.0
+
+
+
+
+ jakarta.platform
+ jakarta.jakartaee-api
+ ${jakartaee}
+ provided
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ 3.8.1
+
+
+ 11
+
+
+
+ org.apache.maven.plugins
+ maven-war-plugin
+ 3.3.2
+
+
+
+
\ No newline at end of file
diff --git a/Semester 3/Exams-Quizzes/Problem2Final2800/src/main/java/asdv/problem2final2800/JakartaRestConfiguration.java b/Semester 3/Exams-Quizzes/Problem2Final2800/src/main/java/asdv/problem2final2800/JakartaRestConfiguration.java
new file mode 100644
index 0000000..56939c8
--- /dev/null
+++ b/Semester 3/Exams-Quizzes/Problem2Final2800/src/main/java/asdv/problem2final2800/JakartaRestConfiguration.java
@@ -0,0 +1,13 @@
+package asdv.problem2final2800;
+
+import jakarta.ws.rs.ApplicationPath;
+import jakarta.ws.rs.core.Application;
+
+/**
+ * Configures Jakarta RESTful Web Services for the application.
+ * @author Juneau
+ */
+@ApplicationPath("resources")
+public class JakartaRestConfiguration extends Application {
+
+}
diff --git a/Semester 3/Exams-Quizzes/Problem2Final2800/src/main/java/asdv/problem2final2800/resources/JakartaEE10Resource.java b/Semester 3/Exams-Quizzes/Problem2Final2800/src/main/java/asdv/problem2final2800/resources/JakartaEE10Resource.java
new file mode 100644
index 0000000..e04a006
--- /dev/null
+++ b/Semester 3/Exams-Quizzes/Problem2Final2800/src/main/java/asdv/problem2final2800/resources/JakartaEE10Resource.java
@@ -0,0 +1,20 @@
+package asdv.problem2final2800.resources;
+
+import jakarta.ws.rs.GET;
+import jakarta.ws.rs.Path;
+import jakarta.ws.rs.core.Response;
+
+/**
+ *
+ * @author
+ */
+@Path("jakartaee10")
+public class JakartaEE10Resource {
+
+ @GET
+ public Response ping(){
+ return Response
+ .ok("ping Jakarta EE")
+ .build();
+ }
+}
diff --git a/Semester 3/Exams-Quizzes/Problem2Final2800/src/main/java/beans/TemplatesBean.java b/Semester 3/Exams-Quizzes/Problem2Final2800/src/main/java/beans/TemplatesBean.java
new file mode 100644
index 0000000..c2b360a
--- /dev/null
+++ b/Semester 3/Exams-Quizzes/Problem2Final2800/src/main/java/beans/TemplatesBean.java
@@ -0,0 +1,32 @@
+package beans;
+import java.io.Serializable;
+import jakarta.inject.Named;
+import jakarta.faces.view.ViewScoped;
+
+@Named(value = "templatesBean")
+@ViewScoped
+public class TemplatesBean implements Serializable
+{
+
+ private String msgTopDefault = "";
+ private String msgBottomDefault = "";
+ private String msgLeftDefault = "Generate a number between 1 and 100!";
+ private String msgCenterDefault = "No center content ... press the below button!";
+ public String getMsgLeftDefault() { return msgLeftDefault; }
+ public void setMsgLeftDefault(String msgLeftDefault) { this.msgLeftDefault = msgLeftDefault; }
+ public String getMsgTopDefault(){return msgTopDefault;}
+ public void setMsgTopDefault(String msgTopDefault){this.msgTopDefault = msgTopDefault;}
+ public String getMsgBottomDefault(){return msgBottomDefault;}
+ public void setMsgBottomDefault(String msgBottomDefault){this.msgBottomDefault = msgBottomDefault;}
+ public String getMsgCenterDefault(){return msgCenterDefault;}
+ public void setMsgCenterDefault(String msgCenterDefault){this.msgCenterDefault = msgCenterDefault;}
+ public void leftAction() {
+ int randInt = (int) (Math.random() * 100 + 1);
+ this.msgLeftDefault = "" + randInt;
+ }
+ public void topAction(String msg){this.msgTopDefault = msg;}
+ public void bottomAction(String msg){this.msgBottomDefault = msg;
+ System.out.println( this.msgBottomDefault );}
+
+ public void centerAction(){this.msgCenterDefault = "This is default content";}
+}
diff --git a/Semester 3/Exams-Quizzes/Problem2Final2800/src/main/resources/META-INF/persistence.xml b/Semester 3/Exams-Quizzes/Problem2Final2800/src/main/resources/META-INF/persistence.xml
new file mode 100644
index 0000000..7582bf1
--- /dev/null
+++ b/Semester 3/Exams-Quizzes/Problem2Final2800/src/main/resources/META-INF/persistence.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
diff --git a/Semester 3/Exams-Quizzes/Problem2Final2800/src/main/webapp/WEB-INF/beans.xml b/Semester 3/Exams-Quizzes/Problem2Final2800/src/main/webapp/WEB-INF/beans.xml
new file mode 100644
index 0000000..9dfae34
--- /dev/null
+++ b/Semester 3/Exams-Quizzes/Problem2Final2800/src/main/webapp/WEB-INF/beans.xml
@@ -0,0 +1,6 @@
+
+
+
\ No newline at end of file
diff --git a/Semester 3/Exams-Quizzes/Problem2Final2800/src/main/webapp/WEB-INF/glassfish-web.xml b/Semester 3/Exams-Quizzes/Problem2Final2800/src/main/webapp/WEB-INF/glassfish-web.xml
new file mode 100644
index 0000000..673cc06
--- /dev/null
+++ b/Semester 3/Exams-Quizzes/Problem2Final2800/src/main/webapp/WEB-INF/glassfish-web.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+ Keep a copy of the generated servlet class' java code.
+
+
+
diff --git a/Semester 3/Exams-Quizzes/Problem2Final2800/src/main/webapp/WEB-INF/web.xml b/Semester 3/Exams-Quizzes/Problem2Final2800/src/main/webapp/WEB-INF/web.xml
new file mode 100644
index 0000000..fcfcd54
--- /dev/null
+++ b/Semester 3/Exams-Quizzes/Problem2Final2800/src/main/webapp/WEB-INF/web.xml
@@ -0,0 +1,24 @@
+
+
+
+ jakarta.faces.PROJECT_STAGE
+ Development
+
+
+ Faces Servlet
+ jakarta.faces.webapp.FacesServlet
+ 1
+
+
+ Faces Servlet
+ /faces/*
+
+
+
+ 30
+
+
+
+ faces/index.xhtml
+
+
diff --git a/Semester 3/Exams-Quizzes/Problem2Final2800/src/main/webapp/index.xhtml b/Semester 3/Exams-Quizzes/Problem2Final2800/src/main/webapp/index.xhtml
new file mode 100644
index 0000000..ec9be7b
--- /dev/null
+++ b/Semester 3/Exams-Quizzes/Problem2Final2800/src/main/webapp/index.xhtml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Semester 3/Exams-Quizzes/Problem2Final2800/src/main/webapp/resources/css/cssLayout.css b/Semester 3/Exams-Quizzes/Problem2Final2800/src/main/webapp/resources/css/cssLayout.css
new file mode 100644
index 0000000..c1bd39b
--- /dev/null
+++ b/Semester 3/Exams-Quizzes/Problem2Final2800/src/main/webapp/resources/css/cssLayout.css
@@ -0,0 +1,37 @@
+#top {
+ position: relative;
+ background-color: #cccccc;
+ padding: 5px;
+ margin: 0px 0px 10px 0px;
+ text-align:center;
+}
+#bottom {
+ position: relative;
+ background-color: #cccccc;
+ padding: 5px;
+ margin: 10px 0px 0px 0px;
+ text-align:center;
+}
+#left {
+ float: left;
+ background-color: #cccc11;
+ position: relative;
+ padding: 5px;
+ width: 150px;
+ text-align:center;
+}
+#right {
+ float: right;
+ position: relative;
+ background-color: #cccc11;
+ padding: 5px;
+ width: 150px;
+ text-align:center;
+}
+#content {
+ background-color: #00cc00;
+ padding: 5px;
+ margin: 0px 170px 0px 170px;
+ text-align:center;
+}
+
diff --git a/Semester 3/Exams-Quizzes/Problem2Final2800/src/main/webapp/resources/css/default.css b/Semester 3/Exams-Quizzes/Problem2Final2800/src/main/webapp/resources/css/default.css
new file mode 100644
index 0000000..713572a
--- /dev/null
+++ b/Semester 3/Exams-Quizzes/Problem2Final2800/src/main/webapp/resources/css/default.css
@@ -0,0 +1,10 @@
+body {
+ background-color: #ffffff;
+ font-size: 12px;
+ font-family: Verdana, "Verdana CE", Arial,
+ "Arial CE", "Lucida Grande CE",
+ lucida, "Helvetica CE",
+ sans-serif;
+ color: #000000;
+ margin: 10px;
+}
diff --git a/Semester 3/Exams-Quizzes/Problem2Final2800/src/main/webapp/template/default/bottomDefault.xhtml b/Semester 3/Exams-Quizzes/Problem2Final2800/src/main/webapp/template/default/bottomDefault.xhtml
new file mode 100644
index 0000000..7f187aa
--- /dev/null
+++ b/Semester 3/Exams-Quizzes/Problem2Final2800/src/main/webapp/template/default/bottomDefault.xhtml
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Semester 3/Exams-Quizzes/Problem2Final2800/src/main/webapp/template/default/contentDefault.xhtml b/Semester 3/Exams-Quizzes/Problem2Final2800/src/main/webapp/template/default/contentDefault.xhtml
new file mode 100644
index 0000000..288f3d1
--- /dev/null
+++ b/Semester 3/Exams-Quizzes/Problem2Final2800/src/main/webapp/template/default/contentDefault.xhtml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Semester 3/Exams-Quizzes/Problem2Final2800/src/main/webapp/template/default/leftDefault.xhtml b/Semester 3/Exams-Quizzes/Problem2Final2800/src/main/webapp/template/default/leftDefault.xhtml
new file mode 100644
index 0000000..bc5e433
--- /dev/null
+++ b/Semester 3/Exams-Quizzes/Problem2Final2800/src/main/webapp/template/default/leftDefault.xhtml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Semester 3/Exams-Quizzes/Problem2Final2800/src/main/webapp/template/default/rightDefault.xhtml b/Semester 3/Exams-Quizzes/Problem2Final2800/src/main/webapp/template/default/rightDefault.xhtml
new file mode 100644
index 0000000..4854bb4
--- /dev/null
+++ b/Semester 3/Exams-Quizzes/Problem2Final2800/src/main/webapp/template/default/rightDefault.xhtml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ This is default right side
+
+
diff --git a/Semester 3/Exams-Quizzes/Problem2Final2800/src/main/webapp/template/default/topDefault.xhtml b/Semester 3/Exams-Quizzes/Problem2Final2800/src/main/webapp/template/default/topDefault.xhtml
new file mode 100644
index 0000000..ccce3da
--- /dev/null
+++ b/Semester 3/Exams-Quizzes/Problem2Final2800/src/main/webapp/template/default/topDefault.xhtml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/Semester 3/Exams-Quizzes/Problem2Final2800/src/main/webapp/template/layout.xhtml b/Semester 3/Exams-Quizzes/Problem2Final2800/src/main/webapp/template/layout.xhtml
new file mode 100644
index 0000000..93e591a
--- /dev/null
+++ b/Semester 3/Exams-Quizzes/Problem2Final2800/src/main/webapp/template/layout.xhtml
@@ -0,0 +1,59 @@
+
+
+
+
+
+
+
+ My Template
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Semester 3/Exams-Quizzes/ProgrammingExam1_CalebFontenot/Printed HTMLs/page1.html b/Semester 3/Exams-Quizzes/ProgrammingExam1_CalebFontenot/Printed HTMLs/page1.html
new file mode 100644
index 0000000..9ffe6d6
--- /dev/null
+++ b/Semester 3/Exams-Quizzes/ProgrammingExam1_CalebFontenot/Printed HTMLs/page1.html
@@ -0,0 +1,59 @@
+
+
+
+page1.xhtml
+
+
+
+
+/home/caleb/ASDV-WebDev/Semester 3/Exams-Quizzes/ProgrammingExam1_CalebFontenot/src/main/webapp/page1.xhtml |
+
+<?xml version='1.0' encoding='UTF-8' ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:h="jakarta.faces.html"
+ xmlns:p="http://primefaces.org/ui">
+ <h:head>
+ <title>Facelet Title</title>
+ <style>
+ body {
+ text-align: center
+ }
+ </style>
+ </h:head>
+ <h:body>
+ <h:form>
+ <h2 style="display: inline;">Miles to kilometers label 1: </h2>
+ <h:outputText id="output1" style="display: inline;" value="#{problem1Bean.output}"/>
+ <br/>
+ <h2 style="display: inline;">Miles to kilometers label 2: </h2>
+ <h:outputText id="output2" style="display: inline;" value="#{problem1Bean.output}"/>
+ <br/>
+
+ <p:inputText value="#{problem1Bean.input}" >
+ <p:ajax event="keyup" listener="#{problem1Bean.convert}" update="output2"/>
+ </p:inputText>
+ mi<br/>
+ <p:commandButton value="Convert Miles to Killometers" action="#{problem1Bean.convert}" update="output1 output2"/>
+ </h:form>
+ </h:body>
+</html>
+
+
+
diff --git a/Semester 3/Exams-Quizzes/ProgrammingExam1_CalebFontenot/nb-configuration.xml b/Semester 3/Exams-Quizzes/ProgrammingExam1_CalebFontenot/nb-configuration.xml
new file mode 100644
index 0000000..b98110a
--- /dev/null
+++ b/Semester 3/Exams-Quizzes/ProgrammingExam1_CalebFontenot/nb-configuration.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ 10-web
+ gfv700ee10
+ ide
+ Facelets
+
+
diff --git a/Semester 3/Exams-Quizzes/ProgrammingExam1_CalebFontenot/pom.xml b/Semester 3/Exams-Quizzes/ProgrammingExam1_CalebFontenot/pom.xml
new file mode 100644
index 0000000..c62170c
--- /dev/null
+++ b/Semester 3/Exams-Quizzes/ProgrammingExam1_CalebFontenot/pom.xml
@@ -0,0 +1,48 @@
+
+ 4.0.0
+ edu.slcc.asdv.caleb
+ ProgrammingExam1_CalebFontenot
+ 1.0-SNAPSHOT
+ war
+ ProgrammingExam1_CalebFontenot-1.0-SNAPSHOT
+
+
+ UTF-8
+ 10.0.0
+
+
+
+
+ jakarta.platform
+ jakarta.jakartaee-api
+ ${jakartaee}
+ provided
+
+
+ org.primefaces
+ primefaces
+ 13.0.5
+ jakarta
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ 3.8.1
+
+
+ 11
+
+
+
+ org.apache.maven.plugins
+ maven-war-plugin
+ 3.3.2
+
+
+
+
\ No newline at end of file
diff --git a/Semester 3/Exams-Quizzes/ProgrammingExam1_CalebFontenot/src/main/java/beans/Problem1Bean.java b/Semester 3/Exams-Quizzes/ProgrammingExam1_CalebFontenot/src/main/java/beans/Problem1Bean.java
new file mode 100644
index 0000000..a122010
--- /dev/null
+++ b/Semester 3/Exams-Quizzes/ProgrammingExam1_CalebFontenot/src/main/java/beans/Problem1Bean.java
@@ -0,0 +1,50 @@
+/*
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
+ * Click nbfs://nbhost/SystemFileSystem/Templates/JSF/JSFManagedBean.java to edit this template
+ */
+
+package beans;
+
+import jakarta.inject.Named;
+import jakarta.enterprise.context.SessionScoped;
+import jakarta.faces.application.FacesMessage;
+import jakarta.faces.context.FacesContext;
+import jakarta.faces.event.AjaxBehaviorEvent;
+import java.io.Serializable;
+import org.primefaces.PrimeFaces;
+
+/**
+ *
+ * @author caleb
+ */
+@Named(value="problem1Bean")
+@SessionScoped
+public class Problem1Bean implements Serializable {
+ private boolean checkboxState = true;
+ private String input;
+ private String output = "test";
+
+ public String getOutput() { return output; }
+ public String getInput() { return input; }
+ public void setInput(String input) { this.input = input; }
+ public void setOutput(String output) {this.output = output;}
+ public boolean isCheckboxState() { return checkboxState; }
+ public void setCheckboxState(boolean checkboxState) { System.out.println("checkbox state updated: " + checkboxState); this.checkboxState = checkboxState; }
+
+ public void convert() {
+ System.out.println("convert");
+ double miles = Double.parseDouble(input);
+ output = String.valueOf(miles * 1.609344) + "km";
+ String messageContent = "Result of " + miles + "mi to km is: " + output;
+ System.out.println(messageContent);
+ FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_INFO, "Converter:", messageContent);
+ FacesContext.getCurrentInstance().addMessage(null, message);
+ PrimeFaces.current().ajax().update("MyForm:messages");
+ }
+
+
+ /** Creates a new instance of Problem1Bean */
+ public Problem1Bean() {
+ }
+
+}
diff --git a/Semester 3/Exams-Quizzes/ProgrammingExam1_CalebFontenot/src/main/java/beans/Problem3Bean.java b/Semester 3/Exams-Quizzes/ProgrammingExam1_CalebFontenot/src/main/java/beans/Problem3Bean.java
new file mode 100644
index 0000000..af94378
--- /dev/null
+++ b/Semester 3/Exams-Quizzes/ProgrammingExam1_CalebFontenot/src/main/java/beans/Problem3Bean.java
@@ -0,0 +1,53 @@
+/*
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
+ * Click nbfs://nbhost/SystemFileSystem/Templates/JSF/JSFManagedBean.java to edit this template
+ */
+
+package beans;
+
+import jakarta.inject.Named;
+import jakarta.enterprise.context.Dependent;
+import jakarta.enterprise.context.SessionScoped;
+import java.io.Serializable;
+
+/**
+ *
+ * @author caleb
+ */
+@Named(value="a")
+@SessionScoped
+public class Problem3Bean implements Serializable {
+
+ private String value1;
+ private String value2;
+
+ public String getValue2()
+ {
+ return value2;
+ }
+
+ public void setValue2(String value2)
+ {
+ this.value2 = value2;
+ }
+
+
+ public String getValue1()
+ {
+ return value1;
+ }
+
+ public void setValue1(String value1)
+ {
+ this.value1 = value1;
+ }
+ public void b (String a, String b) {
+ this.value1 = a;
+ this.value2 = b;
+ }
+
+ /** Creates a new instance of Problem3Bean */
+ public Problem3Bean() {
+ }
+
+}
diff --git a/Semester 3/Exams-Quizzes/ProgrammingExam1_CalebFontenot/src/main/java/edu/slcc/asdv/caleb/programmingexam1_calebfontenot/JakartaRestConfiguration.java b/Semester 3/Exams-Quizzes/ProgrammingExam1_CalebFontenot/src/main/java/edu/slcc/asdv/caleb/programmingexam1_calebfontenot/JakartaRestConfiguration.java
new file mode 100644
index 0000000..dc8e79d
--- /dev/null
+++ b/Semester 3/Exams-Quizzes/ProgrammingExam1_CalebFontenot/src/main/java/edu/slcc/asdv/caleb/programmingexam1_calebfontenot/JakartaRestConfiguration.java
@@ -0,0 +1,13 @@
+package edu.slcc.asdv.caleb.programmingexam1_calebfontenot;
+
+import jakarta.ws.rs.ApplicationPath;
+import jakarta.ws.rs.core.Application;
+
+/**
+ * Configures Jakarta RESTful Web Services for the application.
+ * @author Juneau
+ */
+@ApplicationPath("resources")
+public class JakartaRestConfiguration extends Application {
+
+}
diff --git a/Semester 3/Exams-Quizzes/ProgrammingExam1_CalebFontenot/src/main/java/edu/slcc/asdv/caleb/programmingexam1_calebfontenot/resources/JakartaEE10Resource.java b/Semester 3/Exams-Quizzes/ProgrammingExam1_CalebFontenot/src/main/java/edu/slcc/asdv/caleb/programmingexam1_calebfontenot/resources/JakartaEE10Resource.java
new file mode 100644
index 0000000..f989551
--- /dev/null
+++ b/Semester 3/Exams-Quizzes/ProgrammingExam1_CalebFontenot/src/main/java/edu/slcc/asdv/caleb/programmingexam1_calebfontenot/resources/JakartaEE10Resource.java
@@ -0,0 +1,20 @@
+package edu.slcc.asdv.caleb.programmingexam1_calebfontenot.resources;
+
+import jakarta.ws.rs.GET;
+import jakarta.ws.rs.Path;
+import jakarta.ws.rs.core.Response;
+
+/**
+ *
+ * @author
+ */
+@Path("jakartaee10")
+public class JakartaEE10Resource {
+
+ @GET
+ public Response ping(){
+ return Response
+ .ok("ping Jakarta EE")
+ .build();
+ }
+}
diff --git a/Semester 3/Exams-Quizzes/ProgrammingExam1_CalebFontenot/src/main/resources/META-INF/persistence.xml b/Semester 3/Exams-Quizzes/ProgrammingExam1_CalebFontenot/src/main/resources/META-INF/persistence.xml
new file mode 100644
index 0000000..7582bf1
--- /dev/null
+++ b/Semester 3/Exams-Quizzes/ProgrammingExam1_CalebFontenot/src/main/resources/META-INF/persistence.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
diff --git a/Semester 3/Exams-Quizzes/ProgrammingExam1_CalebFontenot/src/main/webapp/WEB-INF/beans.xml b/Semester 3/Exams-Quizzes/ProgrammingExam1_CalebFontenot/src/main/webapp/WEB-INF/beans.xml
new file mode 100644
index 0000000..9dfae34
--- /dev/null
+++ b/Semester 3/Exams-Quizzes/ProgrammingExam1_CalebFontenot/src/main/webapp/WEB-INF/beans.xml
@@ -0,0 +1,6 @@
+
+
+
\ No newline at end of file
diff --git a/Semester 3/Exams-Quizzes/ProgrammingExam1_CalebFontenot/src/main/webapp/WEB-INF/glassfish-web.xml b/Semester 3/Exams-Quizzes/ProgrammingExam1_CalebFontenot/src/main/webapp/WEB-INF/glassfish-web.xml
new file mode 100644
index 0000000..673cc06
--- /dev/null
+++ b/Semester 3/Exams-Quizzes/ProgrammingExam1_CalebFontenot/src/main/webapp/WEB-INF/glassfish-web.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+ Keep a copy of the generated servlet class' java code.
+
+
+
diff --git a/Semester 3/Exams-Quizzes/ProgrammingExam1_CalebFontenot/src/main/webapp/WEB-INF/web.xml b/Semester 3/Exams-Quizzes/ProgrammingExam1_CalebFontenot/src/main/webapp/WEB-INF/web.xml
new file mode 100644
index 0000000..fcfcd54
--- /dev/null
+++ b/Semester 3/Exams-Quizzes/ProgrammingExam1_CalebFontenot/src/main/webapp/WEB-INF/web.xml
@@ -0,0 +1,24 @@
+
+
+
+ jakarta.faces.PROJECT_STAGE
+ Development
+
+
+ Faces Servlet
+ jakarta.faces.webapp.FacesServlet
+ 1
+
+
+ Faces Servlet
+ /faces/*
+
+
+
+ 30
+
+
+
+ faces/index.xhtml
+
+
diff --git a/Semester 3/Exams-Quizzes/ProgrammingExam1_CalebFontenot/src/main/webapp/index.xhtml b/Semester 3/Exams-Quizzes/ProgrammingExam1_CalebFontenot/src/main/webapp/index.xhtml
new file mode 100644
index 0000000..c8f7fc8
--- /dev/null
+++ b/Semester 3/Exams-Quizzes/ProgrammingExam1_CalebFontenot/src/main/webapp/index.xhtml
@@ -0,0 +1,13 @@
+
+
+
+
+ Facelet Title
+
+
+
+
+
+
+
diff --git a/Semester 3/Exams-Quizzes/ProgrammingExam1_CalebFontenot/src/main/webapp/page1.xhtml b/Semester 3/Exams-Quizzes/ProgrammingExam1_CalebFontenot/src/main/webapp/page1.xhtml
new file mode 100644
index 0000000..af22e9b
--- /dev/null
+++ b/Semester 3/Exams-Quizzes/ProgrammingExam1_CalebFontenot/src/main/webapp/page1.xhtml
@@ -0,0 +1,31 @@
+
+
+
+
+ Facelet Title
+
+
+
+
+
+ Miles to kilometers label 1:
+
+
+ Miles to kilometers label 2:
+
+
+
+
+
+
+ mi
+
+
+
+
diff --git a/Semester 3/Exams-Quizzes/ProgrammingExam1_CalebFontenot/src/main/webapp/page2.xhtml b/Semester 3/Exams-Quizzes/ProgrammingExam1_CalebFontenot/src/main/webapp/page2.xhtml
new file mode 100644
index 0000000..4a63aa9
--- /dev/null
+++ b/Semester 3/Exams-Quizzes/ProgrammingExam1_CalebFontenot/src/main/webapp/page2.xhtml
@@ -0,0 +1,37 @@
+
+
+
+
+ Facelet Title
+
+
+
+
+
+
+ Miles to kilometers label 1:
+
+
+ Miles to kilometers label 2:
+
+
+
+
+
+ mi
+
+ show converter
+
+
+
+
+
+
+
diff --git a/Semester 3/Exams-Quizzes/ProgrammingExam1_CalebFontenot/src/main/webapp/page3.xhtml b/Semester 3/Exams-Quizzes/ProgrammingExam1_CalebFontenot/src/main/webapp/page3.xhtml
new file mode 100644
index 0000000..2ef71a4
--- /dev/null
+++ b/Semester 3/Exams-Quizzes/ProgrammingExam1_CalebFontenot/src/main/webapp/page3.xhtml
@@ -0,0 +1,17 @@
+
+
+
+
+ Facelet Title
+
+
+
+
+
+
+
+
+
+
diff --git a/Semester 3/Exams-Quizzes/ProgrammingExam1_CalebFontenot/src/main/webapp/template1.xhtml b/Semester 3/Exams-Quizzes/ProgrammingExam1_CalebFontenot/src/main/webapp/template1.xhtml
new file mode 100644
index 0000000..4375fc5
--- /dev/null
+++ b/Semester 3/Exams-Quizzes/ProgrammingExam1_CalebFontenot/src/main/webapp/template1.xhtml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
diff --git a/Semester 3/ZIPs/FinalExamProblem1_CalebFontenot.zip b/Semester 3/ZIPs/FinalExamProblem1_CalebFontenot.zip
new file mode 100644
index 0000000..84a2e9d
Binary files /dev/null and b/Semester 3/ZIPs/FinalExamProblem1_CalebFontenot.zip differ
diff --git a/Semester 3/ZIPs/FinalExamProblem2_CalebFontenot.zip b/Semester 3/ZIPs/FinalExamProblem2_CalebFontenot.zip
new file mode 100644
index 0000000..db44c50
Binary files /dev/null and b/Semester 3/ZIPs/FinalExamProblem2_CalebFontenot.zip differ
diff --git a/Semester 3/ZIPs/FinalExamProblem3_CalebFontenot.zip b/Semester 3/ZIPs/FinalExamProblem3_CalebFontenot.zip
new file mode 100644
index 0000000..5ec41c4
Binary files /dev/null and b/Semester 3/ZIPs/FinalExamProblem3_CalebFontenot.zip differ