Archivo de la categoría: groovy

Groovy integration inside a Spring project

In this post we are going to talk a little bit about how to integrate Groovy (or another Scripting language like JRuby or BeanShell) within a Spring project. Achiving that is not really complicated, the only thing you need to do is add your Groovy scripts with a special schema within your application context. The example I am going to show you is uploaded to my Github account. You can find it right here.

And what are we going to do?. We are create a simple sample, based in the official Spring documentation you may find here or here too. We are going to write our Spring MVC controller, but thanks to Groovy we are going to be able to redefine our controller redirection with no need to compile our code again.

The example is pretty simple, imaging you have a controller related to a specified url (say home.htm). What we want is changing the page the controller eventually render. So we need to write our code using Groovy.

Read the rest of this entry »

2 comentarios

Publicado por en 3 julio, 2012 en groovy, Spring


Etiquetas: , ,

Getting started with Grails and Groovy

Grails LogoGrails is a project from SpringSource and VMware led by Graeme RocherGrails, is defined in its website as:

an advanced and innovative open source web application platform that delivers new levels of developer productivity by applying principles like Convention over ConfigurationGrails helps development teams embrace agile methodologies, deliver quality applications in reduced amounts of time, and focus on what really matters: creating high quality, easy to use applications that delight users. Grails naturally complements Java application development since it is built on Spring and based on Groovy, the leading dynamic language for the Java platform.

Read the rest of this entry »

1 comentario

Publicado por en 1 noviembre, 2011 en grails, groovy, web


Etiquetas: , , ,

A %d blogueros les gusta esto: