Category Archives: Groovy

Get the IP address for a host name in Groovy

I was playing around with some Groovy scripts and looking at some neat tip and tricks on how Groovy can simplify what would have taken a lot more code in Java. Here is one that came up with: print out … Continue reading

Posted in Groovy | Tagged , , , , | 1 Comment

SpringOne 2GX Wrap-up

(I have been meaning to post this for a while, but life has caught up with me, including my company’s tech conference, where I was a speaker in one session and a panelist in another.) On September 9-12, I had … Continue reading

Posted in Grails, Groovy, Spring | Tagged , , , , , , , , , | Leave a comment

Issue with inner classes in Grails 2.2.0

I was working on a controller in a Grails 2.2.0 project, and it was a Groovy class structured something like this: I have used this pattern previously in Grails 1.3.7 and Grails 2.0.1, however when I invoked the closure which … Continue reading

Posted in Grails, Groovy | Tagged , , , , , , , , | 5 Comments

Using GrailsApplication in UrlMappings.groovy

As of the current version of Grails we are using (2.0.1), the grailsApplication bean is not available for use in the UrlMappings class. However, the UrlMappingsHolderFactoryBean¬†implements GrailsApplicationAware, so we can call getGrailsApplication() to do things such as base or mappings … Continue reading

Posted in Grails, Groovy | Tagged , , , | Leave a comment

A Groovy temperature conversion with Categories

I have been getting more interested with the capabilities of the Groovy language since I have used it more and more as part of my daily work on a Grails web application. I have also been having some interesting conversations … Continue reading

Posted in DSL, Groovy, MOP | Tagged , , , , , | 5 Comments

Implementing a Grails required interstitial form page

Having shared functionality/pages across software modules in web application development seems to be a common occurrence (at least within the projects on which I am working) and is a problem that can be handled in a number of ways. Currently, … Continue reading

Posted in Grails, Groovy | Tagged , , , , , , | 3 Comments

Grails 2.0 mockFor() Gotcha

Update: When I was researching another Grails issue, I found out that what I encountered below looks to be fixed in Grails 2.0.1. I have yet to verify the fix, but if you also encounter this issue I urge you … Continue reading

Posted in Grails, Groovy | Tagged , , , , , , , , | 4 Comments