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"%>