progress for edit

This commit is contained in:
Katerina Iatropoulou 2020-10-12 00:39:51 +00:00
parent 3ade9b27f8
commit d60cecdc5d
2 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ public class EditRegisteredService extends HttpServlet {
response.sendRedirect("./registeredServices");
}
if (serviceId == null || serviceId.isEmpty()) {
if (serviceId == null || serviceId.isEmpty()) { //TODO WRONG MESSAGE
request.getSession().setAttribute("message", "Service with id " + serviceId + " does not exist.");
}

View File

@ -30,7 +30,7 @@ public class RegisteredServicesUtils {
System.out.println("I AM HERE....");
RegisteredService registeredService = registeredServiceDao.fetchRegisteredServiceById(id);
if (registeredService == null) {
return true; //no harm in accessing nothing
return false; //no harm in accessing nothing
}
System.out.println("....and HERE");
System.out.println(registeredService.getAai_id());