O'Reilly logo

Grails 2: A Quick-Start Guide by Ben Klein, Dave Klein

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

Grails Views with Groovy Server Pages

Grails uses Groovy Server Pages (GSP) for its view layer. If you’ve ever worked with JavaServer Pages, well, you have my sympathy, but GSP will seem familiar—only easier to work with. Grails also uses SiteMesh,[36] the page decoration framework from OpenSymphony, to assist in the page layout. SiteMesh will merge each of our .gsp files into a file called main.gsp (located in TekDays/grails-app/views/layouts. This is what gives a consistent look to all of our pages, as we saw with the dynamic scaffolding. We’ll begin our tour of the generated views with main.gsp, followed by the four views and the template generated for the TekEvent class. Then we’ll look at a couple of the other views that take advantage ...

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