From 6da5ba42a60189bdfdc73ffd7477e5907d4a6faa Mon Sep 17 00:00:00 2001 From: "ms@Nicro" Date: Mon, 8 Jan 2024 21:42:18 +0100 Subject: [PATCH] Invite Patient Servlet --- src/main/java/controller/InvitePatient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/controller/InvitePatient.java b/src/main/java/controller/InvitePatient.java index e0654cc..dbf9dc9 100644 --- a/src/main/java/controller/InvitePatient.java +++ b/src/main/java/controller/InvitePatient.java @@ -18,7 +18,7 @@ protected void doPost(HttpServletRequest request, HttpServletResponse response) HttpSession session = request.getSession(); model.service.registration.Registration registration=new Registration(); registration.invitePatient((Integer) session.getAttribute("id"), request.getParameter("email"), request.getParameter("nome"), request.getParameter("cognome")); - response.sendRedirect("JSP/homeTherapist.jsp"); + response.sendRedirect(request.getContextPath() + "/JSP/homepageTherapist.jsp"); } } \ No newline at end of file