Access git information during war build

GIT is a widely used version control system which really helps us to keep track of our code in a quite managed way. When we have frequent deployments on server it becomes important to know the details of the build, commit reference, date of build etc. Though we have...

Access ServletContext In Grails gsp

ServletContext is used to store global application attributes among other things,e.g In grails controller we can store global application attribute as : def mySetting = servletContext["mySetting"] servletContext["mySetting"] = "foo" asset...

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...

Loops in GSP

Loops are one of the most important and useful part of every programming language. Grails provides various loops in controller and view. Following are the loops in GSP: each: each tag is used to iterate over each element of a list. <g:each in="${books}"...