O'Reilly logo

Apache Jakarta and Beyond: A Java Programmer’s Introduction by Larne Pekowsky

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

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

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