0

The CRUD application works for one table perfectly but when I copy in the code for the second table, it doesn't allow me to use the same WebServlet annotation, I have tried declaring the servlet in the brackets but no luck.

WebServlet("/")

public class EventServlet extends HttpServlet {

  • Are you saying that you now have two servlets both listening on the same URL of `/` ? That should have produced an illegal state exception in the server logs. Have you looked at it? – BalusC Jan 28 '22 at 16:12
  • Hi, ya I noticed that, I understand the issue that the two routes have the same endpoint but I just can't seem to find a solution to have both servlets operational – user17508225 Jan 28 '22 at 18:46

0 Answers0