diff --git a/WebContent/html/webpages/deviceRedirect.jsp b/WebContent/html/webpages/deviceRedirect.jsp
index 7ba8b98..3dc00d4 100644
--- a/WebContent/html/webpages/deviceRedirect.jsp
+++ b/WebContent/html/webpages/deviceRedirect.jsp
@@ -42,17 +42,17 @@ if(request.getParameter("add") != null){
Device device = new Device(name,description,mac,manufacturer,hardware,model,serial,nfc);
myaccess.addDevice(device);
}
-/*
+
//modify form was submitted
if(request.getParameter("modify") != null){
//getParameter() always returns string
String strID = request.getParameter("id");
//turn to int for constructor
int id = Integer.parseInt(strID);
- Location location = new Location(id,name,address,town,state,zip);
- myaccess.modifyLocation(location);
+ Device device = new Device(name,id,description,mac,manufacturer,hardware,model,serial,nfc);
+ myaccess.modifyDevice(device);
}
-
+/*
//delete form was submitted
if(request.getParameter("delete") != null){
String strID = request.getParameter("id");