O'Reilly logo

Struts 2 Design and Programming: A Tutorial by Budi Kurniawan

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 10. Model Driven and Prepare Interceptors

This chapter explains the Model Driven and Prepare interceptors, two very important interceptors that help with separating the action and the model. It starts with a discussion of why separating the action and the model is a good idea and continues with two sample applications that illustrate the roles of the interceptors.

Separating the Action and the Model

Web applications are normally multi-tiered. There are the presentation tier, the logic tier, and the data tier. Communication between two tiers is conducted by invoking methods and passing data in the form of transfer objects. Also known as a value object, a transfer object is simple and has no methods. In fact, there is a pattern that governs ...

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