O'Reilly logo

Struts 2 in Action by Scott Stanlick, Chad Michael Davis, Don Brown

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 4. Adding workflow with interceptors

This chapter covers

  • Firing interceptors
  • Exploring the built-in interceptors
  • Declaring interceptors
  • Building your own interceptors

In the previous chapter, we learned a great deal about the action component of the Struts 2 framework. From a developer’s daily working perspective, the action component may well be the heart and soul of the framework. But working silently in the background are the true heroes of the hour, the interceptors. In truth, interceptors are responsible for most of the processing done by the framework. The built-in interceptors, declared in the struts-default package’s defaultStack, handle most of the fundamental tasks, ranging from data transfer and validation to exception handling. ...

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