Learn Java for Web Development

(Tina Meador) #1

354 CHAPTER 7: Rapid Web Development with Grails


Figure 7-40. Show Book screen


This concludes the chapter, which sketched a brief overview of Grails 2. For more detailed coverage,
I recommend Beginning Groovy, Grails, and Griffon by Vishal Layka, Christopher M. Judd, Joseph
Faisal Nusairat, and Jim Shingler (Apress, 2012), as well as The Definitive Guide to Grails 2 by Jeff
Scott Brown and Graeme Rocher (Apress 2012).


Summary


In this chapter, you learned that Grails is a rapid web development framework that combines the
best of Java open source, conventions, the Groovy dynamic language, and the power of the Java
platform. You saw how easy it is to develop a fully functional application using Grails scaffolding to
do most of the work. You used static scaffolding as a learning tool, generating the controller and
views for one domain class (Book). Then you navigated through the controller, and saw that all the
work in the controller is done in the actions. Then you learned the code for each action responsible
for the corresponding view. Finally, you navigated through the views and saw how the views take
advantage of the Grails tag libraries to promote a clean separation of concerns.

Free download pdf