Course in Grails Web Apps

Course in how to quickly build a web app using Groovy and Grails

Time-to-market is an important factor when chosing the technology stack for developing web apps and other software systems. Using the Groovy framework Grails you can design web apps in record time. Do as many others (e.g. LinkedIn, Sky, Vodafone, Nokia and more) start develop web apps swimmingly easy.

Grails is efficient because it builds upon Spring Framework (Spring Boot), Hibernate for object-to-relational mapping and SiteMesh for overall layout management.

After a brief introduction of the Groovy language you will learn everything you need to know in order to get up to speed designing web apps in Groovy/Grails. We do recommend that you take the Groovy Basics course in addition to fully utilize this fascinating language.

This is what you will learn
  • Brief intro to Groovy
  • Dealing with controllers and services
  • Associate classes to database tables
  • Invoke AJAC invocations
Course Contents

Quick intro to Groovy

  • Why Groovy is so much better than Java
  • Installation of Groovy
  • Skip semicolons and stuff
  • Duck typing
  • Groovy strings and beans
  • Built-in data-types, such as lists, maps, ranges and regexes
  • Groovy operators
  • Closures (lambda expressions)
  • Meta-programming

Grails Overview

  • Why Grails makes web development super fast
  • Grails components
  • Installation of Grails
  • Kick-starting a small Grails application


  • How a URI is mapped to controllers and actions
  • Rendering HTML
  • Rendering XML
  • Rendering JSON
  • Redirections
  • Implicit variables
  • The flash scope

Groovy Server Pages (GSP)

  • How views are associated with controller actions
  • Implicit variables at GSP pages
  • Including GSP fragments
  • Layouts using SiteMesh


  • What is a service
  • Basic definition
  • Dependency injection of services
  • Scope and life-cycles
  • Transactional services


  • Logics tags
  • Rendering tags
  • Form tags


  • What is i18n
  • Setting the locale
  • Message tag
  • Swapping the locale
  • Defining a new messge translation

User-Defined Tags

  • How to define your own tags
  • Namespaces
  • Rendering tags
  • Conditional tags
  • Iterative tags

Domain Classes and GORM

  • What is ORM (Object Relational Mapping)
  • What is Hibernate
  • Creating domain classes
  • Basic CRUD (Create Read Update Delete)
  • Data sources
  • Fetching all or single object
  • Pagination
  • Scaffolding
  • Simple relations
  • Finder queries

GORM Constraints

  • Syntax
  • Overview of constraints
  • How to deal with violations


  • YAML vs GroovyConfig configuration files
  • Logging
  • URL mappings
  • Data sources
  • Build dependencies

Grails Plugins

  • Overview of useful plugins and the plugins portal
  • Understanding the differences between plugins for Grails version 2 and version 3
  • Some use cases
NameGrails Web Apps
Duration5 Days
AudienceWeb app developers
PrerequisitesExperience of web app development in Java
  • Grails, version 3+
  • JetBrains Intellij IDEA
  • Java JDK, version 8+
Course Dates
2020-03-16Stockholm27 000 kr
2020-04-20Stockholm27 000 kr
2020-05-11 Stockholm27 000 kr
2020-06-08Stockholm 27 000 kr

Same-Company Discout

We offer a 20% discount for additional participants from the same company and at the same course date. Read more here.

Teaching Language

Our printed course material is always authored in English. The oral presentation in our classrooms is generally in Swedish, unless all participants agree to that we perform the course in English.

On-Site Course

If you order an On-Site course, we will come to you and hold the course in your office. The price is determined by our price model and is based on the number of course days, number of participants and any travel and lodging.

Read more about out price modell and term of sales here.

Related Courses
Groovy3Beginner Show
Spock Testing1 Intermediate Show