Front Controller

Context

The presentation-tier request handling mechanism must control and coordinate processing of each user across multiple requests. Such control mechanisms may be managed in either a centralized or decentralized manner.

Problem

The system requires a centralized access point for presentation-tier request handling to support the integration of system services, content retrieval, view management, and navigation. When the user accesses the view directly without going through a centralized mechanism, two problems may occur:

  • Each view is required to provide its own system services, often resulting in duplicate code.

  • View navigation is left to the views. This may result in commingled view content and view navigation.

Additionally, ...

Get Core J2EE™ Patterns: Best Practices and Design Strategies 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.