Archive | Groovy RSS feed for this section

Creating JSON using Groovy

June 22, 2012

0 Comments

I wrote previously about parsing JSON in Groovy. In this article I show a simple example of creating JSON using Groovy. I had to learn about creating JSON using Groovy as I would be using JSON as the response format in the REST API which might be developed sometime in future. Creating JSON using Groovy [...]

email

A simple Location and Weather mashup using Gaelyk Framework

June 12, 2012

1 Comment

In our sample Gaelyk application here we stopped at just obtaining the location information. In this post lets update that application to fetch the Weather information as well. For the weather information we make use of the Weather Underground API which provides a lot of features like geolocation information, current weather conditions, forecast weather conditions [...]

Exiting Blocks and Methods in Groovy

April 26, 2011

0 Comments

This article is based on Groovy in Action, Second Edition, to be published on Summer 2011. It is being reproduced here by permission from Manning Publications. Manning publishes MEAP (Manning Early Access Program,) eBooks and pBooks. MEAPs are sold exclusively through Manning.com. All pBook purchases include free PDF, mobi and epub. When mobile formats become [...]

Objects in Groovy

April 26, 2011

0 Comments

This article is based on Groovy in Action, Second Edition, to be published on Summer 2011. It is being reproduced here by permission from Manning Publications. Manning publishes MEAP (Manning Early Access Program,) eBooks and pBooks. MEAPs are sold exclusively through Manning.com. All pBook purchases include free PDF, mobi and epub. When mobile formats become [...]

Introduction to Groovy Server Pages (GSP)

February 18, 2011

0 Comments

Introduction This article is about Groovy Server Pages basic concepts. Groovy Server Pages (GSP) is a view technology which can be used for designing web application using Grails Framework. Developing GSP are very much similar to that of designing web pages with Active Server Pages (ASP) and Java Server Pages (JSP) but coding is very [...]

Groovy for Domain-Specific Languages

October 8, 2010

0 Comments

Groovy for Domain-Specific Languages The Java virtual machine runs on everything from the largest mainframe to the smallest microchip and supports every conceivable application. But Java is a complex and sometimes arcane language to develop with. Groovy allows us to build targeted singlepurpose minilanguages, which can run directly on the JVM alongside regular Java code. [...]

Groovy Interview Questions and FAQs

August 5, 2010

0 Comments

Groovy Interview Questions and FAQs – 1 What is Groovy? Groovy is a powerful high level language for the Java platform which compiles down to Java bytecode. Think of it as a Ruby or Python like language that is tightly integrated with the Java platform – allowing you the same powerful and concise coding syntax [...]

Templates in Groovy

April 6, 2008

0 Comments

1) Introduction In this article, we will expose the various APIs for processing Templates in Groovy. A template can be thought of some static content along with some well-defined place-holders. These templates can be re-used any number of times by simply copying it and substituting the place-holders with some appropriate values. The first section of [...]

Closures in Groovy

April 5, 2008

0 Comments

1) Introduction In this article, let us look into one of the important features supported in Groovy, the Closures. Groovy is an object-oriented scripting language in which the syntax resembles Java. Not all languages support the concept of Closures directly, although they may provide indirect support, that too with so many limitations and restrictions. This [...]

Web Development in Groovy using Groovlets

December 9, 2007

0 Comments

1) Introduction In this article, we will learn about how to achieve Web Development using Groovy. Groovy is a scripting language and it has components called Groovlets which sit on top of a Web Server for handling HTTP Requests and Responses similar to Java Servlets. This article will provide an overview about Groovlets in the [...]