Friday, December 9, 2011

Spring Portlet MVC basics

In this post I've shown one of the figures from Chapter 7 of Portlets in Action book, which depicts how Spring Portlet MVC framework works.


The DispatcherPortlet acts as the front
controller for each portlet and finds the handler mapped (which is HelloWorldController in the above diagram) to the request using HandlerMapping. The
result of executing a handler, ModelAndView, is used to resolve the actual view to be rendered, and
the request is dispatched to ViewRendererServlet for rendering.