title: Why does Spring MVC need at least two contexts?
body: <p>In Spring MVC, there are two contexts. One is the application context or global context which is booted up by <code>ContextLoaderListener</code>. It takes all the configuration files mentioned in <code>contextConfigLocation</code> parameter.</p>
  
  <p>Now if you are using Spring MVC as well, then Dispatcher servlet is required, which boots up another container which is also known as web application container. This container takes the global container as a parent.</p>
  
  <p>When integrating struts1 with spring, there is only one context. Why does spring mvc need two? Is it possible to use only one context when using spring mvc?</p>
  
  <p>thanks!</p>