Vishal Sahu

Software developer by profession , passionate about Groovy, Grails and Java/J2EE technologies and a great lover of Open Source.

Grails

Deploying Grails application on Websphere Application Server V6

Hi, In one of my projects, I needed to deploy the grails application on IBM Websphere Application Server Version 6. So the steps I followed to deploy the application are as follows:- Step-1: Install the IBM Websphere Application Server 6.x 1. Install the Websphere Application Server using its installer. (If it...

07-Jul-2010

Grails

Grails – Installation on windows machine

Hi, This blog is about installing Grails on windows machine. Before installing grails, make sure that Java SDK 1.4 or higher is installed on your machine. Set JAVA_HOME environmental variable to point to the path where you have installed Java 1. Download the grails latest version from http://www.grails.org/Download 2....

02-Jun-2010

Grails

Client side validation for Number values

Hi, Recently in my project , i needed to validate an input (whether it is a integer or not) on client side. I tried many codes but they are bit lengthy. Then I encountered the simplest way as given below, which worked. For any input value, it checks whether it is an Integer or not. function isInteger(a) { return...

27-May-2010

Grails

Reading messages from message bean in functional tests

Hi, In one of my project i need to read message from message bundle in functional test cases. Such that whenever the message or label changes, we can just change it in message.properties and hence avoiding the test to fail. To achieve so, i wrote the following code in my test file and it worked for me. // to get the message...

27-Apr-2010

Grails

Generating Dynamic charts in Grails

In my project we need to generate dynamic Pie charts & Area charts. I had various options to do so. 1. Use Google charts API 2. Use Grails Eastwood Chart plugins. 3. Use jFreeChart API. In case of Google charts, the application only generates the required URL & get the chart from google server , which is unacceptable if we...

31-Mar-2010

Grails

Compiling sub-reports in Jasper reports

In my project we needed to generate pdf reports. The tool we used to design reports is IReport 2.0.5 & the plugin used is grails jasper plugin.The plugin works fine with simple reports but fails when it come to complex report which uses subreport.The problem is that the plugin compiles .jrxml file to .jasper file upto 1 level.It do...

12-Mar-2010