O'Reilly logo

Grails in Action, Second Edition by Glen Smith and Peter Ledbrook

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 6. Controlling application flow

This chapter covers

  • Introducing mocking
  • Unit testing your view code
  • Exploring scopes
  • Working with redirects

In chapters 3 and 5, you learned how Grails handles domain objects as you went about creating, updating, saving, deleting, and querying all kinds of domain classes. Along the way, you used scaffolding controllers to route the user around the application, and you implemented a few GSP views to host your forms. But, for the most part, you ignored how controllers do their work. It’s time to set that right.

In this chapter, we’ll focus exclusively on controllers—and all the important roles they play in dealing with data from the web tier, routing it to services, and shipping off results to the ...

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