Chapter 12. The Controller

So far, little has been said about the controller side of the model/view/controller paradigm. One reason is that a great deal can be done without a formal controller. Without a model, there would be nothing to show; without a view, there would be no way to show it. But so far, it has been possible to muddle along by putting controller functionality into one of the other layers. After all, the whole Java News Today site was built without a controller. The site has been able to get away with this only because the models and views have been pretty closely matched. Most of Java News Today’s pages have had a one-to-one correspondence among page elements, form fields, bean properties, and database fields.

The second, and more ...

Get JavaServer Pages™, Second Edition 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.