June 2017
Intermediate to advanced
496 pages
14h 4m
English
In the basic version of Model 2 architecture, the requests from the browser are handled directly by different servlets (or Controllers). In a number of business scenarios, one would want to do a few common things in servlets before we handle the request. An example would be to ensure that the logged-in user has the right authorization to execute the request. This is a common functionality that you would not want to be implemented in every servlet.
In Model 2 Front Controller architecture, all requests flow into a single controller called the Front Controller.
Picture below represents typical Model 2 Front Controller architecture:
The following are some of the responsibilities of a typical Front Controller: ...
Read now
Unlock full access