Chapter 19. Struts

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.

Some Common Controller Tasks

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 ...

Get Apache Jakarta and Beyond: A Java Programmer’s Introduction now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.