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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.