

28
Apr, 15
I am back with a new blog post titled “Controlling Domain Persistence using mapWith property”.In Grails if we want to make certain fields non-persistent we can use the transient keyword like this: class DomainClass { static transients = ['field1',...

26
Apr, 15
Baby Steps of Migration from Acegi to Spring Security in Grails.
Recently I have worked in migration of Acegi to Spring Security and I found some summarize steps to migrate from Acegi to Spring Security plugin.There are crystal clean seven steps by which we migrate from Acegi to Spring Security plugin. step 1:-The first thing we...

21
Apr, 15
Change controller default url pattern in Grails
Hi friends I am back with a new blog is how to change a default pattern of controller names in URL. Let us consider case 1 : We have a controller by name of AdminController . I am looking to create a new alias “/reports” in URL for AdminController all...

17
Apr, 15
Change Default Port Temporarily And Permanently Of Grails 3.x Application
Grails 3 – Change Default Port Grails application by default runs on 8080 port. But if required we can change the default port. Prior to grails 3.x, we can change the port by running the application using following command: grails -Dserver.port=8181 run-app This...

30
Mar, 15
Groovy direct field accessor(@) and method pointer(&) operators.
Hello friends, I have some groovy tricks to share with you. 😉 Direct field access operator(@) We always write a groovy class containing property and there getters. So I am taking a simple example here to make you know the benefit of this operator. class User { public...

29
Mar, 15
Paypal credit card recurring payment integration in Grails.
Paypal gives a vast support for online payment, everything is been documented in nice way but we have to Google for better results for your payment to get in your control(other than standard payments). There are two API’s provided by pay pal: Rest( Doc’s)...

27
Mar, 15
Factory Pattern Approach in Java
I am back with a new blog post titled “Factory Pattern Approach in Java”. Recently I was developing pricing strategies for my web application and during the development I learnt that how factory pattern can be useful and efficient for such type of...

26
Mar, 15
Useful maven commands for beginners
Maven is a build automation tool used primarily for Java projects. The word maven means ‘accumulator of knowledge’ in Yiddish. Maven addresses two aspects of building software: First, it describes how software is built, and second, it describes its...

22
Mar, 15
An Introduction To Jasper Reports Bands
Jasper Report is an awesome open source Java reporting tool. It is used to generate dynamic reports using .jasper or JRXML file. Jasper report contains several bands: Title: This band is printed only once at the beginning of the generated document. Page Header: This...

22
Mar, 15
Dynamicity of Groovy
Groovy is one of the famous JVM based language which come up with a lot of groovier functionality in it. Groovy provides a great feature : Metaprogramming at run time and this is what i am calling Dynamicity of Groovy. Do not confuse with Dynamically Typed languages...

20
Mar, 15
Bind A List of Objects Into A Grails Command Object
Grails supports command object binding [0]. Request parameters are bound to properties of a given command class. From this(binding [0]) context, a special-case is the use of lazy list properties. A lazy list grows whenever an index greater than its size is requested....

20
Mar, 15
SIM808 Hardware Design -Blog
Hi, lets talk about some IoT. I have found a very useful module which is working as a combo module for GPRS and GPS and its a complete positioning module just need few interfacing designs, that i am going to discuss in the following blog of mine. The blog contains...

17
Mar, 15
Integration With Jawbone OAuth in Grails.
Goal: Integration with Jawbone OAuth in Grails. Hi Guys! I would like to share with you a very interesting way to connect with Jawbone, which I found when I need to implement this with my application. To achieve this follow below steps: Step 1 : Visit Jawbone...

10
Mar, 15
Check whether List of String is Valid Email or not in Grails
Hello guys recently I was blocked in email verification and I was not interested to do with the regular expression because in some cases it was failed to validate. I found some classes to validate emails easily. Please refer the code Step 1:- import import...

25
Feb, 15
Grails Goodness:Multiple BootStraps file
In Grails if we want to execute code on application startup and stop time . We just need to write our code in grails-app/conf/BootStrap.groovy file.Here we have two closure. 1. init :- Here we write code that we have need to execute at application startup time....

22
Feb, 15
Integration With Yahoo Using Grails OAuth Plugin
I am back with a new OAuth blog, topic: Integration with Yahoo using Grails OAuth Plugin. So far, we have successfully integrated various OAuth providers in our application: 😎 Facebook Google (OAuth 1.0) Google (OAuth 2.0) LinkedIn Twitter Let’s try one more...

14
Feb, 15
Harnessing the power of groovy
This blog post “Harnessing the power of groovy” demonstrates the power of groovy language. In java, what could take 10-15 lines, in groovy we can achieve it using 1-line code. Multiply Each Number by 2 [php](1..10).collect{it * 2}[/php] 1...

28
Jan, 15
Xml validation against xsd
Validates the XML document against the specified XSD document. XSD document are “XML Schema” that describe the structure of a XML document. The validator identify given XML file must be parsable using a DOM/SAX parser, and only then it will validate...

28
Jan, 15
Take and Drop elements from tail of Groovy collection
In groovy 2.4(which was released last week) there are three new methods added in “DefaultGroovyMethods” class they are “init“, “dropRight” and “takeRight“, lets take them one by one takeRight e.g Returns the last num...

28
Jan, 15
Object Oriented JavaScript
OOP’s is one of the most popular ways in field of programming. Before OOP’s, list of instructions will be executed one by one. But in OOP’s we dealing with object that communicate to each other. JavaScript supports OOP’s but not in the same way as...
Recent Comments