From 20d27ab69fdd249c29f293cef9516fd8972051cd Mon Sep 17 00:00:00 2001 From: Adam R Claxton Date: Thu, 2 Mar 2017 22:35:33 -0500 Subject: [PATCH] nonfunctional commit because last time I changed branches without commiting I messed up with stashing and lost my work :p --- WebContent/html/webpages/orderForm.html | 21 +++ WebContent/html/webpages/orderFormHandler.jsp | 4 +- WebContent/html/webpages/shoppingCart.jsp | 143 +++++++++--------- WebContent/index.jsp | 113 +++++++++++--- src/database/MySQLAccess.java | 1 + 5 files changed, 186 insertions(+), 96 deletions(-) create mode 100644 WebContent/html/webpages/orderForm.html diff --git a/WebContent/html/webpages/orderForm.html b/WebContent/html/webpages/orderForm.html new file mode 100644 index 0000000..c733759 --- /dev/null +++ b/WebContent/html/webpages/orderForm.html @@ -0,0 +1,21 @@ +
+
+ + + +
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
\ No newline at end of file diff --git a/WebContent/html/webpages/orderFormHandler.jsp b/WebContent/html/webpages/orderFormHandler.jsp index ba3f08d..a21fdff 100644 --- a/WebContent/html/webpages/orderFormHandler.jsp +++ b/WebContent/html/webpages/orderFormHandler.jsp @@ -11,11 +11,11 @@ pageEncoding="ISO-8859-1"%> <% //First update employee String userName = request.getParameter("name"); -int phone = Integer.valueOf(request.getParameter("phone")); +String phone = request.getParameter("phone"); int location = Integer.valueOf(request.getParameter("location")); MySQLAccess access = new MySQLAccess(); access.updateEmployee(1, userName, phone, location); //TODO get ID somehow - +%>alert("updated employee "+userName);<% // And now for the ticket // TODO %> diff --git a/WebContent/html/webpages/shoppingCart.jsp b/WebContent/html/webpages/shoppingCart.jsp index 0ad0db4..dc2838b 100644 --- a/WebContent/html/webpages/shoppingCart.jsp +++ b/WebContent/html/webpages/shoppingCart.jsp @@ -49,7 +49,7 @@ pageEncoding="ISO-8859-1"%>