Online Tutorials
Below is a list of available tutorials/resources about Grails ordered by category. Please have a look at our Quick Start and the Grails Screencasts to quickly experience the power of the Grails Framework. Besides this, the Developers' Blogs and the Grails Podcast provide additional timely information about the Grails Framework.
Please feel free to edit this page and link to further Grails resources! You can also use the Grails User List to announce new resources!
Cookbook Tutorials
- Simple Login Tutorial (PDF) - Learn how to use interceptors in this simple login tutorial which builds on the "Quick Start" tutorial.
- the User class fails in run-app since the constraints should be declared static "def constraints " should be "static def constraints" or similar (using 0.6rc1)
- it's not obvious, for a first timer (I've only done the quick start) that the login page given should be saved to grails-app/views/user/login.gsp , it's logical once you know, but the tutorial could specify this.
- within the new interceptor: you should exclude also the actions "login" and "doLogin", otherwise your redirect will loop
- Acegi On Grails - Tutorial to use "grails domain class " from the Acegi security and securing your applications with "Acegi filters".
- Many-to-Many mapping with Hibernate XML - Tutorial that shows how to get a many-to-many relationship mapping working with Hibernate XML
- Discovering an application's security requirements
- A simple EmailerService - one way in which emails can be sent from Grails apps; it also demonstrates integration with Spring-configured beans
- Sending SMTP Authenticated Email, Html content with GroovyTemplates and Spring integration
- Compass and Grails how to - Add Compass-powered search to your Grails application
- Lucene and Grails how to - Using Lucene to add full-text search to your Grails app in under 15 minutes
- Checking Projects into SVN - how to put your projects into SVN version control
- File Upload - How to build a file upload in grails
- Simple Dynamic Password Codec - How to add and use a SHA-1 digest codec in grails
- Many-to-Many Mapping without Hibernate XML - a tutorial that shows how to create a M2M mapping domain without all that tedious mucking about in Hiberspace.
- Simple Avatar Uploader - a quick intro to image uploading and display.
- Using ExtJS Layouts with Grails Layouts - Combine ExtJS layouts with Grails layouts to get complex page layouts with no CSS.
- MBean export in Grails how to - Export your managed beans in Grails. Hibernate Statistics MBean example.
- Grails WebAlbum - A simple photo album, used as an exercise to develop a complete Grails application. There are users, who have albums, which contain pictures. Lightbox is used for a slide show effect. Builds on some of the tutorials listed above. Source code included.
- Main layout by convention - How to use the main layout without the <meta name="layout" content="NAME" /> tag on every page.
- Writing a Simple Issue Tracker in Grails Part 1, Part 2-- Josh Reed explains how to build a simple issue tracker using Grails.
- Build a Custom Validator in Grails with a Plugin
- Master-Detail screen in Flex, backed up by Grails application - includes JMS functionality using the Grails JMS Plugin
Articles
Presentations
Podcasts & other Audio
Screencasts & other Movies