--- url: "https://martinfowler.com/eaaCatalog/frontController.html" titulek: "Front Controller" h1: "Front Controller" popis: "A controller that handles all requests for a Web site." jazyk: "" kanonicka: "" drobecky: [] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-13 21:09:00" znaku: 1004 slov: 142 kodovani: "utf-8" sha256: "7a8513f2314cb12a372e06076e71b4915ded2251e55b9851c1cca9ab42025695" --- # Front Controller A controller that handles all requests for a Web site. In a complex Web site there are many similar things you need to do when handling a request. These things include security, internationalization, and providing particular views for certain users. If the input controller behavior is scattered across multiple objects, much of this behavior can end up duplicated. Also, it's difficult to change behavior at runtime. The Front Controller consolidates all request handling by channeling requests through a single handler object. This object can carry out common behavior, which can be modified at runtime with decorators. The handler then dispatches to command objects for behavior particular to a request. for more details go to [Chapter 14](https://learning.oreilly.com/library/view/patterns-of-enterprise/0321127420/ch14.html#ch14lev1sec3) of the online ebook at oreilly.com This pattern is part of [Patterns of Enterprise Application Architecture](.) [Martin Fowler](/) 05 March 2003