Blog
Integrate jasper report with grails
25 Sep, 13

Integrate jasper report with grails

I used Jasper report for the first time in my Grails project and i faced many issues. I am sharing some tips with you which will help you to solve common problems. 1. Use jasper plugin. Go to this link and add jasper plugin in your BuildConfig.groovy like this....
Read file in Grails service
23 Sep, 13

Read file in Grails service

Whenever I required to put  file in Application and read content from that file I create a directory e.g. resources in the web-app directory and read content in service like: [php]import org.codehaus.groovy.grails.web.context.ServletContextHolder as SCH class...
Capture login event in grails
23 Sep, 13

Capture login event in grails

There are several use cases where we are require to capture the login event such as storing the login history, set user related data like name and email in session(so that no database hit to get this basic information), etc. In my project I asked to maintain user...
Play MP3 files in Java using JLayer
23 Sep, 13

Play MP3 files in Java using JLayer

Recently, I was trying some media API and found the JDK 1.6 doesn’t play MP3 files out of the box. So, I searched a little and found JLayer that can play mp3 format, you only have to include its jar file. Other than JLayer there’s Java Media Framework...
Convert string params to list
23 Sep, 13

Convert string params to list

Grails 2.x added a new method in params object “list”. This method is used in case you are not sure weather you got a string(single request parameters of a name) or a list(multiple request parameters of the same name) in params. This method always return a...