From bc2bd0c483438e8850127129f0cf1d3e83a2f48b Mon Sep 17 00:00:00 2001 From: Adam R Claxton Date: Thu, 30 Mar 2017 01:53:07 -0400 Subject: [PATCH] And now location names from the name field are stored! That's it for tonight MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also fixed bug that made city name always null. Note: Current database varchar is not big enough to hold the name 'Lake Char­gogg­a­gogg­man­chaugg­a­gogg­chau­bun­a­gung­a­maugg', must fix --- WebContent/html/webpages/orderFormHandler.jsp | 4 ++-- WebContent/html/webpages/shoppingCart.jsp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/WebContent/html/webpages/orderFormHandler.jsp b/WebContent/html/webpages/orderFormHandler.jsp index 218df89..aee91c6 100644 --- a/WebContent/html/webpages/orderFormHandler.jsp +++ b/WebContent/html/webpages/orderFormHandler.jsp @@ -25,10 +25,10 @@ int location=-1; if(Integer.parseInt(request.getParameter("location_dropdown"))==0) { location = access.addLocation( - "placeholder", + request.getParameter("locname"), request.getParameter("state"), request.getParameter("address"), - request.getParameter("town"), + request.getParameter("city"), request.getParameter("zip"), sso ); diff --git a/WebContent/html/webpages/shoppingCart.jsp b/WebContent/html/webpages/shoppingCart.jsp index 50ad0f9..7649ec2 100644 --- a/WebContent/html/webpages/shoppingCart.jsp +++ b/WebContent/html/webpages/shoppingCart.jsp @@ -90,7 +90,7 @@ if(c.getName().equals("ssoNum")) sso = Integer.parseInt(c.getValue());
- +