This tutorial will discuss the importance of the service layer in Grails and how to work with it. It also explains transaction management and how to utilize it.
This example will show how to handle Excel upload and save each row in the file as a record in the database.
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.
The Grails if tag renders it’s body when the condition given is true. This will show a simple example on how to use this tag.
The Grails unless tag renders it’s body when the condition given is false. It is the opposite of the if tag that renders a body when the condition is true. This will show a simple example on how to use this tag.