Page Controller Pattern
Learn Page Controller Pattern (Enterprise Design Patterns, Enterprise Design Patterns) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
What is the Page Controller Pattern? A Page Controller assigns one controller class (or method) per page or request type - each controller handles exactly one kind of request end-to-end, from input to choosing the response. This is the direct opposite structural choice from Front Controller's single shared entry point. When It Fits • Simple sites/apps with a small, fixed set of distinct pages, where each page's logic is genuinely independent. • Easier to understand for a single page in isolation - there's no shared dispatch machinery to trace through. When It Doesn't Scale Well Cross-cutting...