Up and Running With Spring MVC Controller
MVC or model view controller pattern relies on the front controller pattern, simply said the DispatcherServlet receives a request for an URl and gives it to a mapped Controller to take the request and handle it. The DispatcherServlet in Spring is generally configured in the XML like below <servlet> <servlet-name>Login</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> Similarly a Java based approach might look like below Dynamic dispatcherServlet = servletContext.addServlet("dispatcherServlet", new DispatcherServlet(context)); So its the first file to be loaded. So once we have our dispatcherservle...