progress for edit
This commit is contained in:
parent
3ade9b27f8
commit
d60cecdc5d
|
@ -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.");
|
||||
}
|
||||
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue