Java Reference
In-Depth Information
Header.jsp
include
include
View
Manager
Composite
view
Footer.jsp
include
include
Front
controller
View
Helper
Business
Service
client
Dispatcher
Figure 3-14. Composite View usage
Dispatcher 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 helper
Helper
delegates
Front
Controller
Client
Dispatcher
View
uses
View
Helper
Figure 3-15. Dispatcher class diagram
 
 
Search WWH ::




Custom Search