diff --git a/WEB-INF/src/controleur/ThreadController.java b/WEB-INF/src/controleur/ThreadController.java index 865fbac34dc6b9d892197bad8cd3500ec9fd662a..c595c92c41b9735b3ff1737d288b81003890cdb4 100644 --- a/WEB-INF/src/controleur/ThreadController.java +++ b/WEB-INF/src/controleur/ThreadController.java @@ -43,13 +43,15 @@ public class ThreadController extends HttpServlet { } } - if(daoThread.findById(idThread) == null){ + if(!action.equals("create") && daoThread.findById(idThread) == null){ req.setAttribute("error", "Ne changez pas l'url vous même!"); req.getRequestDispatcher("/WEB-INF/vue/error.jsp").forward(req, resp); return; } Follower follow = new Follower(username, idThread); + + System.out.println("action : " + action); switch (action){ case "follow":