Some of the details were removed for brevity. The
servlet-class has a fully qualified packaged class and the JSP referred are using context relative path request.getSession().getServletContext().getRealPath(path).
The
forwarding is being done in if part there are other such blocks that forward / redirect to different HTML, JSP, Servlet like:
Either redirect or forward, it comes back to the same servlet (as web.xml makes all /guest to be passed to the Controller) and ends up in an infinite loop.