02/07/2022 - 02/11/2022
10:00 AM - 06:00 PM
Online Virtual Class
USD $2,795.00
Enroll
02/28/2022 - 03/04/2022
10:00 AM - 06:00 PM
Online Virtual Class
USD $2,795.00
Enroll
03/28/2022 - 04/01/2022
10:00 AM - 06:00 PM
Online Virtual Class
USD $2,795.00
Enroll

Objectives

  • Understand Groovy's relationship to Java
  • Use the Groovy tools
  • Master the fundamentals of writing Groovy code
  • Work with Groovy strings, closures, and collections
  • See how conditionals, loops, and other control structures differ in Groovy versus Java and other languages
  • Produce and parse JSON and XML data
  • Access relational databases from Groovy
  • Understand the fundamentals of Grails and how it integrates with Spring, Hibernate, and other frameworks
  • Use domain classes and understand domain class relationships
  • Understand MVC architecture and best practices for implementing it in Grails applications
  • Build Groovy Server Pages
  • Write and use Grails services
  • Deploy a Grails application

Prerequisites

All attendees should be familiar with web development in Java, including servlets, JSPs, and database access.

Duration

4 Days

Outline for Web Application Development with Groovy and Grails

1. Introduction

2. Groovy Fundamentals

  • Differences between Groovy and Java
  • Declaring classes
  • Using assertions
  • Groovy Strings
  • Closures
  • Lists and Maps
  • Expandos
  • Ranges
  • Lists, Maps, and Sets
  • Builders
  • Metaprogramming

3. Grails Project Structure

  • Overview of a Grails project
  • Directories for model classes, controllers, and views
  • Data source configuration
  • Logging
  • Command line utilities
  • IDE integration

4. Domain Classes

  • Object-Relational Mapping with GORM
  • Optional properties
  • Constraints and validation
  • Modeling relationships
  • Performing CRUD operations
  • Dynamic queries
  • Connection to Hibernate

5. Scaffolding

  • Dynamic scaffolding
  • Working with the dynamic operations
  • Static scaffolding
  • Generating controllers
  • Generating views

6. Controllers

  • Setting the default action
  • Accessing request attributes
  • Flash scope
  • Data binding and type conversion
  • Rendering a response
  • Redirects and returns

7. Groovy Server Pages

  • Built-in Grails tags
  • Dynamic tags
  • Layouts and templates
  • Pagination
  • Creating custom tags

8. Adding Ajax Support

  • Basics of Ajax
  • Ajax-supporting tags
  • Rendering JSON and XML responses

9. Services and Jobs

  • Transactions
  • Services and dependency injection

10. Java Integration

  • ORM integration with Hibernate
  • Dependency injection with Spring
  • Working with legacy databases

11. Plugins

  • Architecture
  • Installing plugins
  • Review of common plugins

12. Conclusion