While analyzing an existing web application, you observe the following issues in the source
code: Duplicate control code is scattered throughout various view. Business and
presentation logic are mixed within these view. The next phase of the project involves
refactoring the existing code to address these two issues. Which design pattern, if employed
in the refactoring exercise, would most directly address the two issues?
A.
Service to Worker
B.
Dispatcher view
C.
DAO
D.
Composite View
B is correct answer
Ref : http://www.corej2eepatterns.com/Patterns/DispatcherView.htm
Please check Problem Section.