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 ...
Get Grails in Action, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.