How do I execute multiple servlets in sequence?
Use RequestDispatcher#include() on an URL matching the url-pattern of the Servlet. public class Populate_ALL extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType(“text/plain”); request.getRequestDispatcher(“/populateServlet1”).include(request, response); request.getRequestDispatcher(“/populateServlet2”).include(request, response); request.getRequestDispatcher(“/populateServlet3”).include(request, response); //… } } Note: if those servlets cannot be used independently, then this is the wrong approach and you should be … Read more