Blog
Command Object And Its Benefits
4 Sep, 14

Command Object And Its Benefits

Today, I am going to explain how to use command object in grails application to validate the client information without using domain class. You will see the benefits of using command object in this blog. The command object’s purpose is to bind the data from web-form...
AC Power Measurement
3 Sep, 14

AC Power Measurement

Introduction A whole house energy monitor measures the energy used by appliances connected to the house mains. To understand how it does this work, it is useful to know something about how appliances interact with the electrical system. Not all appliances interact...
Grails app static resource on https
2 Sep, 14

Grails app static resource on https

In my recent project I have setup ssl and deployed it on server. All the applications page were being served over https but some static contents were being served from http and it showed that the application is not secure. After lot of searching I found the solution....
Loops In Groovy
1 Sep, 14

Loops In Groovy

There are several types of loops in groovy. Following are some of the ways: List list = [4, 2, 9, 6, 7, 8, 2] for loop: for (int i = 0; i < list.size(); i++) { print list.get(i) } output = 4296782 for (int i : list) { print i } output = 4296782 for (int i...