O'Reilly logo

Head First Servlets and JSP, 2nd Edition by Bert Bates, Bryan Basham, Kathy Sierra

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Designing our fantasy controller

Let’s do another one of our now-infamous architectural diagrams to see what this controller and its support components might look like.

image with no caption

1 Having received a request, the Controller locates the correct Form Validation Component in the Declarations XML file. The Controller invokes the Form validator, sending it the request. If the validator finds any errors, it tells the controller which view to return.

2 Using the Declarations XML file, the Controller locates and invokes the Request Action Component component, which invokes the model.

3 Using the Declarations XML file, the Controller locates and invokes the View.

image with no caption

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required