December 2004
Intermediate to advanced
608 pages
11h 47m
English
The preceding chapter covered the standard tag library, which consists of a set of components with which to build views. Beans, as used throughout this book, comprise the model layer of any application. That leaves only the issue of the controller, which is addressed in this chapter.
Before building a controller it is necessary to identify what it should do. This can be determined by examining what has been placed in the model and see what might not belong there. Some of the JSPs in Chapter 18 followed a similar pattern. A form (part of the view) has a number of fields for a user to fill in; when the form is submitted, the values are loaded into a bean (the model) via jsp:setProperty tags. Then another ...