Chapter 3. Working with Struts 2 actions

This chapter covers

  • Bundling actions into packages
  • Implementing actions
  • Introducing object-backed properties and ModelDriven actions
  • Uploading files

With the overviews and introductions behind us, it’s time to study the core components of Struts 2. First up, actions. As we’ve learned, actions do the core work for each request. They contain the business logic, hold the data, and then select the result that should render the result page. This is an action-oriented framework; actions are at its heart. In the end, you’ll spend much of your time as a Struts 2 developer working with actions.

This chapter will give you everything you need to start building your application’s actions. Using the XML-based mechanism ...

Get Struts 2 in Action now with O’Reilly online learning.

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