Sachin

Grails Enthusiast, Technology lover and a self confessed foody... ;-)

Grails

Working with Excel Import Plugin

In a use case, I needed to import excel spreadsheet and save the data in the database, that was when I came across grails' excel import plugin. All I had to do was install the plugin and start using it. No Fuss. I created a class in my src/groovy folder [groovy] import org.grails.plugins.excelimport.* class StudentImportXLS extends...

by Sachin
14-Oct-2010

Technology

Passing Optional Parameters in jasper reports

Hi Guys, In one of my projects, While working with jasper reports, one of the requirement I faced was of passing optional parameter to the sql query in jasper  report. For eg. I had to write a query to find all new customers which were added between two given dates and if an optional status value of the customer is passed the report...

by Sachin
13-Sep-2010

Grails

Using bindData in services

In one of my projects, I was working on rest calls, and one of the requirement was such that I had to pass the XML to service and then parse it and bind the relevant details to an instance of a domain object. In essence I had to call bindData in service after creating a Map from the XML. I soon realised we could not call bindData in...

by Sachin
11-Aug-2010

Technology

Generating stubs for SOAP calls using IntelliJ IDEA

Since working with SOAP calls in XML is very tiresome, we have libraries like axis and wsdl2java to generate stubs to make web-service client calls. I generated the stubs using IntelliJ IDEA to make SOAP calls in grails using the steps below. 1. Adding Framework Support If the IntelliJ project does not already have the framework...

by Sachin
13-Jul-2010

Grails, Technology

Working With Soap Calls

Hey, SOAP is one of the popular ways of working with web-services another being REST (another of my blog)), while working with any of the SOAP based API, you will get a WSDL (web services description/definition language) describing what all methods are supported by the web service. Its a rather complicated XML document. A few days...

by Sachin
08-Jun-2010

Grails

Working With REST Call…

Recently I got an opportunity to work on making some parts of an application RESTful with secured access. It has been a good learning experience so far and encouraged me to write a blog on it. What I have done is nothing new but I never got things at one place in clear terms. So here is my effort to shed some clarity on it and hope that...

by Sachin
28-Apr-2010

Grails

Migrating from grails 1.1.1 to grails 1.2.1

Recently I migrated my project which is in development from grails version 1.1.1 to grails 1.2.1 using grails upgrade.. and it worked like charm, though there were some issues with a couple of plugins, just upgrading their versions took care of them. The problem came while submitting the forms. we had created some forms and a few hyper...

by Sachin
26-Feb-2010