Sorry, I donโt have the code with me, but I will try to explain:
I have a servlet mapped to the following:
/admin/*
So this applies to the servlet:
public class AdminController extends MainController { public void doPost(HttpServletRequest request, HttpServletResponse response) {
Here is the MainController:
public class MainController extends HttpServlet { @Override public void service(ServletRequest request, ServletResponse response) { String requesturi = ((HttpServletRequest)request).getRequestURI(); reqlist = Arrays.asList(requesturi.substring(requesturi.indexOf(Util.rootPath) + Util.rootPath.length()).split("/")); reqlist = reqlist.subList(1, reqlist.size()); doPost((HttpServletRequest)request, (HttpServletResponse)response); }
So, the request is passed to the AdminController, no problem, but then I redid something:
The servlet is called twice! . And that makes me a lot of mistakes.
Does anyone have a clue to this? Is it because I used some of my legacy? Thank you all!
source share