Working with Stripe in Grails

In a recent project, I got a requirement to integrate a Payment gateway. I choose Stripe as it is PCI Level 1 complaint which is the most stringent level of all 4. Following are the steps to integrate stripe in Grails.   Create an Account on Stripe. Goto Account...

Spring Bean Life Cycle

Good Evening Folks. Every Java developer knows that at the time of creation of any object if some initialization is required we keep in constructor. Example. Class Math{ Math(){ // initialization code } } When it comes to J2EE Technology like Servlet we can do same...

Spring static factory method

Good Evening Folks. Today we will deal with a situation where we need an Object in our Spring bean class which can not be created with normal spring bean configuration tag. Lets take a example where requirement is we need inject an object inside my spring bean and...

Design Jasper Report Using Table Component

Hello Guys! Today We learn how to design the Jasper Report by using Table Component. We will see this process of using table component in step by step process. 1. First We will open the blank iReport, then drag and drop the table component in the detail band portion...

Using dynamic path in Jasper Report

In this post, I will explain how we can add images using dynamic path in Jrxml. First of all, we need to add the image component to JRXML file. Click on Window Menu> Palette and then drag-drop the image component on the designer window.   Once we add image...

Persist Content loaded via AJAX

Hi Folks! Recently, I was working on a web application and I was thinking of making extensive use of AJAX so that the whole page would not have to be loaded again and again. These days single page web applications(SPA) are becoming quite popular. We load a main page...

Add jQuery Plugin In AngularJS via Directive

Directives are markers on a DOM element that tell AngularJS to attach a specified behavior to that DOM element or even transform the DOM element and its children. There are many jQuery plugins which we often need in angularjs  , I was using image slider plugin...

Git add interactively in staging area

Git is the most popular version control system now a days specially in agile development. Its makes a developer’s life much easier. It is different from its compitators like SVN because it has functionality of Staging Area Staging area provides the fexiblity to...

GIT Hooks

What is GIT Hooks. Git hooks are scripts those run automatically every time a specific event occurs in a Git repository. You can customize Git’s internal behavior and actions at key points in the development life cycle. Here i am going to describe how can we...

URL mapping with constraints in Grails

Hi guys,I am back with my new blog post. As some times we have scenario to map specific URL for example “www.myexample.com/someusername” we can do this mapping easily '$_username'{ controller= "profile" action= "show" } but the issue is...

Case Insensitive URL Mapping In Grails

In grails we can do URL Mapping easily but URL also need to be case insensitive. Below is the example to make URL case insensitive. '$_controller/$_action' { controller = { params?._controller?.toLowerCase() } action = { params?._actionName?.toLowerCase() }...

Power of Liquibase

Hi Guys! I am back with a new blog post titled “Power of Liquibase”. This post is meant for those who have a basic idea of using Liquibase. As we know that Liquibase is used to keep a track of the changes that we apply to the database. It not only keeps a...

Join multiple String in java

Some time we want a function that can join multiple strings in Java . If we are working with other programming languages , we have join() function to join multiple string,If you were using Java you could not do this.Java provided tools for building GUI applications,...