diff --git a/WebContent/html/webpages/redirect/orderFormHandler.jsp b/WebContent/html/webpages/redirect/orderFormHandler.jsp index aff74f9..afca845 100644 --- a/WebContent/html/webpages/redirect/orderFormHandler.jsp +++ b/WebContent/html/webpages/redirect/orderFormHandler.jsp @@ -1,5 +1,4 @@ -<%@ page import = "database.*,entities.Location" %> -<%@ page import = "entities.User" %> +<%@ page import = "database.*,entities.*,utilities.*" %> <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> @@ -42,13 +41,13 @@ String phone = request.getParameter("phone"); String email = request.getParameter("email"); String[] options = request.getParameterValues("checkboxes"); int perm = 0; -int urgent = 0; +boolean urgent = false; if(options != null){ for(int j = 0; j < options.length; j++){ if(options[j].equals("perm")) perm = 1; if(options[j].equals("urgent")) - urgent = 1; + urgent = true; } } // read location ID, but only if we haven't already generated it when adding new location to db @@ -73,19 +72,49 @@ for(int i=0; i= 0; i--) { + AdminNotificationQueue Q = new AdminNotificationQueue(admins[i],instructions,tickets); + Q.start(); +} %> window.location.replace("../shoppingCart.jsp"); diff --git a/WebContent/html/webpages/shoppingCart.jsp b/WebContent/html/webpages/shoppingCart.jsp index 8b5a3e3..8b698df 100644 --- a/WebContent/html/webpages/shoppingCart.jsp +++ b/WebContent/html/webpages/shoppingCart.jsp @@ -76,9 +76,10 @@ pageEncoding="ISO-8859-1"%>