Java Design Patterns

Two Java design patterns discussed in the previous chapter can also be implemented using the Struts framework. Both the Service to Worker and Dispatcher View design patterns require a controller component, referred to as the front component in both design patterns. The Struts controller can be considered the front component for either design pattern.

If the application contains most of its processing logic in the front component, then it can be considered an implementation of the Service to Worker design pattern. Alternatively, if the front component allows more decision logic to be managed by the views (using view helpers), then the design pattern can be considered the Dispatcher View design pattern.

Get J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.