CHAPTER 3: Best Practices in Java EE Web Development 153Dispatcher View
The Dispatcher View design pattern assembles two patterns, Front Controller and View Helper, into a
microframework with a dispatcher component to utilize the benefits associated with each pattern.
In the Dispatcher View pattern, the dispatcher is responsible for choosing and providing the
mechanism to statically or dynamically present the subsequent view to the user.
The members of the Dispatcher View pattern, as illustrated in Figure 3-15, are as follows:
Front controller
Dispatcher
Helper
View
View helperclient Dispatcher HelperViewView
ManagerBusiness
ServiceComposite
view
Footer.jspHeader.jspincludeincludeincludeincludeFront
controllerFigure 3-14. Composite View usage
Client Front
Controller DispatcherHelperViewView
HelperdelegatesusesFigure 3-15. Dispatcher class diagram