Using Spring’s Java based configuration.

Using Spring’s Java based configuration is fairly straightforward and more flexible. In order to do it, you will have to annotate your java class, that is going to contain your beans, with @Configuration and as we have added the component-scan in our one post...

Configure servlets in Grails application.

Recently, I had to configure jolokia in my grails application. Jolokia is a JMX-HTTP bridge giving an alternative to JSR-160 connectors. Grails doesn’t provide web.xml directly to configure but you can do it by installing the templates. Just issue the following...

jQuery Select2 with ajax in grails

jQuery Select2 is an awesome jQuery plugin. It provides very interactive UI for select drop downs. Select2 comes with AJAX support built in. Instead of giving list to select you can make ajax request and get dynamic data. Following are the steps to get the dynamic...

Everyday JS: Part 4 – Asynchronous Programming.

In my last post we discussed how nodejs can be used to create a http server, but it had some practical problems associated with it. Our ready to deploy server can listen to incoming request on designated port, but it simply didn’t know what to do next ! We...