diff --git a/WebContent/adminLogin.jsp b/WebContent/adminLogin.jsp index c3bcff5..ffd6dc8 100644 --- a/WebContent/adminLogin.jsp +++ b/WebContent/adminLogin.jsp @@ -19,8 +19,10 @@ if (result.next()){ adminCookie = new Cookie("ssoNum", Integer.toString(ssoNum)); adminCookie.setMaxAge(30*60); response.addCookie(adminCookie); + statement.close(); response.sendRedirect("html/webpages/admin.html"); } else { + statement.close(); response.sendRedirect("index.jsp"); } diff --git a/WebContent/html/webpages/adminLocation.jsp b/WebContent/html/webpages/adminLocation.jsp index 7e8db38..573f6aa 100644 --- a/WebContent/html/webpages/adminLocation.jsp +++ b/WebContent/html/webpages/adminLocation.jsp @@ -311,7 +311,7 @@ //database connection MySQLAccess myaccess = new MySQLAccess(); //database query -Location[] locations = myaccess.getLocations(); +Location[] locations = myaccess.getAdminLocations(); //string representation of array. String locationString = Location.arrayToString(locations); locationString = locationString.replace("'","\\'"); diff --git a/WebContent/html/webpages/index.jsp b/WebContent/html/webpages/index.jsp index df2fa47..e31fe6f 100644 --- a/WebContent/html/webpages/index.jsp +++ b/WebContent/html/webpages/index.jsp @@ -1,4 +1,3 @@ -<<<<<<< HEAD:WebContent/html/webpages/index.jsp @@ -48,13 +47,13 @@