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 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 ...

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