Blog
Locale and Message Bundle in Grails
10 Dec, 14

Locale and Message Bundle in Grails

I am back with a new blog post titled “Locale and Message Bundle in Grails”. In grails we define all the string content/description in message.properties file. In order to fetch the message in gsp page we can use the following code:- <g:set...
Invocation Sequence Of Grails Filters
28 Nov, 14

Invocation Sequence Of Grails Filters

Although In most of cases like doing something before each request grails provides the concept of interceptors with in a controller, but if we like to intercept request in more than one controller than grails another functionality comes into picture called Filters....
Return Object from grails taglib
25 Nov, 14

Return Object from grails taglib

I was having a use-case where I need to use grails taglib, In this taglib I have a tag from which I need to return a map but I struggling with that as grails taglib by default return’s StreamCharBuffer e.g class ObjectReturningTagLib { static namespace =...
Grails Export Plugin: Create file on server
17 Nov, 14

Grails Export Plugin: Create file on server

How to create file on server using grails export plugin? Grails export plugin is used for export functionality. Its supports several formats e.g., Excel, PDF, CSV, XML, etc. Following is the simple code to download the file in PDF format using export plugin: class...
Display Customized Error(500) Page
27 Oct, 14

Display Customized Error(500) Page

When an exception is generated in server responds to client with status “500” and using this response code we display a message to enduser through UrlMapping like: "500"(controller:"error", action:"display") We can customize...