Skip to content

Commit

Permalink
Device Settings Update
Browse files Browse the repository at this point in the history
  • Loading branch information
clj13001 committed Apr 1, 2017
1 parent 3dc05cc commit d91a2ae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions WebContent/html/webpages/deviceRedirect.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit d91a2ae

Please sign in to comment.