DI simply means that classes should not instance other classes
directly. But they should have setter methods for the same. This way
it makes it easier to set them using beans in JSP. Also, all methods
should be in Interfaces and all implementation should be inside
classes. This way, object any implementing class could be passed
(masked as of-type-Interface) via the beans in JSP.
request is sent to the Spring MVC Framework the following sequence of
receives the request.
invokes the Controller associated with the request.
the request by calling the appropriate service methods and returns a
to the DispatcherServlet.
contains the model data and the view name.
the view name to a ViewResolver
find the actual View to invoke.
pass the model object to the View
render the result.
the help of the model data will render the result back to the user.
Got a thought to share or found a bug in the code? We'd love to hear from you: