Skip to Content
Apache Jakarta and Beyond: A Java Programmer’s Introduction
book

Apache Jakarta and Beyond: A Java Programmer’s Introduction

by Larne Pekowsky
December 2004
Intermediate to advanced content levelIntermediate to advanced
608 pages
11h 47m
English
Addison-Wesley Professional
Content preview from Apache Jakarta and Beyond: A Java Programmer’s Introduction

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

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Java 9 High Performance

Java 9 High Performance

Mayur Ramgir, Nick Samoylov

Publisher Resources

ISBN: 0321237714Purchase book