Grails Cookbook - A collection of tutorials and examples

Grails Spring Security Core Plugin - Registering Callback Closures

I was searching for a way to hook business logic after successful user login while using Spring Security Core plugin. The simplest way to do this is to register callback closures. It let's you hook your custom code inside Config.groovy after certain Spring Security events.

Grails PayPal Plugin Tutorial

This tutorial will show how to integrate payment processing with your Grails application using the Grails Paypal plugin. This plugin provides integration with Paypal's Instant Payment Notfication (IPN) system. Very useful for selling products and services.

Grails Quartz Plugin Tutorial

Grails Quartz plugin allows to execute scheduled business logic on the background using a specified interval or cron expression. This tutorial will show how to install and use this plugin in your Grails applications.

Grails Mail Plugin Tutorial

This tutorial will show how to send email messages from your controllers or services using the Grails mail plugin. The plugin is very easy to use as it could talk to SMTP servers. You can connect to your own mail servers or to other popular mail providers such as Gmail or Yahoo.

Grails Spring Security Core Plugin Example - Annotations

This example will show how to use Spring Security Core Plugin using annotations. This is one of the simplest way of using this plugin to secure your Grails applications.

Grails Spring Security Core Plugin Example - Static URL Map Rules

This example will show how to use Spring Security Core Plugin using static URL map rules. Similar to annotations, this is also a simple way of using this plugin to secure your Grails applications.

Grails Spring Security Core Plugin Example - Dynamic Request Maps

This example will show how to use Spring Security Core Plugin using dynamic request maps. Similar to annotations, this is also a simple way of using this plugin to secure your Grails applications.

Grails Barcode (barcode4j) Plugin Example

This example will show how to generate barcodes using the barcode4j plugin for display in web HTML view and in downloaded PDF. The latter is useful for printing on regular or label printer. This example assumes you are using Grails version 2.x.