GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — java-design-patterns/front-controller/README.md at master · coding0011/java-design-patterns

Expand file tree

/

README.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
34 lines (26 loc) · 1.19 KB
/

README.md

Copy path

File metadata and controls

34 lines (26 loc) · 1.19 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions
layout pattern
title Front Controller
folder front-controller
permalink /patterns/front-controller/
categories Presentation Tier
tags
Java
Difficulty-Intermediate

Intent

Introduce a common handler for all requests for a web site. This way we can encapsulate common functionality such as security, internationalization, routing and logging in a single place.

alt text

Applicability

Use the Front Controller pattern when

  • you want to encapsulate common request handling functionality in single place
  • you want to implements dynamic request handling i.e. change routing without modifying code
  • make web server configuration portable, you only need to register the handler web server specific way

Real world examples

  • Apache Struts

Credits

  • J2EE Design Patterns
  • Presentation Tier Patterns
  • Patterns of Enterprise Application Architecture
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.