Chapter 3. Actions and ActionSupport

In the previous chapter, we had a crash course on how to configure our Struts 2 application and got a (very) small taste of Struts 2 actions—the place where our application does its work. Even if the bulk of our application's functionality resides in service objects, actions are where the service objects are instantiated and used.

In this chapter, we'll examine Struts 2 actions further. While the mantra of "actions are POJOs" echoes in our heads, extending the ActionSupport class provides us with quite a bit of functionality, including internationalization (I18N), validation, and so on.

Much of this functionality is provided by a combination of interface implementations and interceptors. We'll cover ActionSupport ...

Get Apache Struts 2 Web Application Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.