Skip to main content

DispatcherServlet and Servlet Container

Learn DispatcherServlet and Servlet Container (Servlet Integration, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Fresher Notes DispatcherServlet is the front controller of Spring MVC: one servlet that receives every request and hands it to the right controller. Servlet container (Tomcat, Jetty, Undertow) accepts the HTTP connection, builds HttpServletRequest and HttpServletResponse and calls the servlet. Flow : container, filters, DispatcherServlet, HandlerMapping, HandlerAdapter, controller, view or message converter, response.

More lessons in Servlet Integration