title: What is FrontController design pattern? How much level is DispatcherServlet using it?
body: <p>Actually I am trying to understand the DispatcherServlet and came to know that it is following the FrontController Design Pattern.
  While trying to understand the FrontController design pattern came across this link
  <a href="https://www.oracle.com/technetwork/java/frontcontroller-135648.html" rel="nofollow noreferrer">FrontController from Oracle Doc reference</a>
  Not much understood as I am beginner, but few things I understood Like Below</p>
  
  <p>If we don't have FrontController we often try to duplicate the code in multiple controller like authentication and Authorization. And because of which maintainability becomes a big issue if we want to change something in future. So having frontController in place we can move the basic functionality to frontController and changes can be done easily.</p>
  
  <p>When I explained Same thing in the interview he asked me what are those basic functionalities. I told Internalization, viewResolver, Authentication, Authorization etc. And now again asked consider like there is no dispatcher Servlet how do you handle those functionalities in each controller?</p>
  
  <p>Since am basically a Desktop Application developer I couldn't answer for his next question.</p>
  
  <p>So here are my questions</p>
  
  <ol>
  <li><p>Firstly, is my understanding correct?</p></li>
  <li><p>If my understand is correct, how to answer for the second question of the Interviewer? Which is consider like if there is no dispatcher Servlet how do you handle those functionalities in each controller? means asked me to write some pseudo code of the common functionalities. Which I couldn't as I am swing developer. Could someone please explain me, with some sample code which we repeat across the controller and now with dispatcher we could avoid.</p></li>
  <li><p>If we Start comparing DispatcherServlet with frontController Design Pattern can we say like LocaleResolver, HandlerMapping, ThemeResolver, ViewResolver, HandlerExceptionResolver, HandlerAdapter, MultipartResolver etc. are Helper classes for DispatcherServlet?</p></li>
  </ol>