O'Reilly logo

Struts Kick Start by Kevin Bedell, James Turner

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 8. The Controller: Directing the Action

IN THIS CHAPTER

Getting data back and forth to the user is great, but at some point your code has to actually act on that data and figure out what to do next. This is the job of the Controller.

In Struts, the Controller is implemented in two pieces: the Action classes and Struts itself. The Action receives user input, coordinates access to remote systems or data stores, implements business logic, and decides what View component should be displayed to the user next. Struts, which is configured with the struts-config.xml file, takes care of actually ...

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