|
With Grails we get a lot of extra support for handling request parameters. We can convert a request parameter value to a specific type with a simple method invocation. Grails adds for example the method int() to the parameter so we can return the request parameter value converted to an int. Grails adds several methods like byte(), long(), boolean() we can use in our code. |
|
This is a small issue, but I encountered it and found a solution on the mailing lists, so I thought I’d document it here. I was demonstrating a trivial Grails application in class today and decided to unit test it. The app has a single controller, called WelcomeController: |
|
Grails provides a sound i18n mechanism, specific documentation to see if / grails-app/i18n directory will understand. The default will be generated in various languages of the properties file. In many parts of Grails and i18n related. These include the domain object constraints, the control layer returns an error message, gsp characters in the show. |
|
Whew, Grails has some gotchas. It is so great for so many reasons. But WOW! There are some time sinks tucked away for you to discover. In the hope of helping others, here is a list of the ones that hit me. |
|
It seems that the Groovy has a project for just about anything. That's one of the reasons why the language is so popular. The GPars library is an especially useful project in this new era of mult-core processors and concurrent programming. Formerly known as GParallelizer, GPars offers a framework for handling tasks concurrently and asynchronously while safe-guarding mutable values. DZone recently got an update on the project's latest news from project lead Václav Pech, and we've provided some examples of GPars concepts. Tags: groovy; threading; |
|
Everybody probably heard that functional data structures are great for concurrency. In this note I am going to show why is it so and to show how easy to implement highly performant functional queue with Groovy++. You can find source code and more examples in the Groovy++ distro |
|
After few days play around with Grails Acegi Plugin, now I can set the session and destroy session as I needed for next apps that I try to develop. For Acegi itself it really based on filter servlet, but it really helpful to secure the server from http request with this concept. So basically I just try to configure the session for the application to automatically set the session automatically after login. |
|
Gradle has good maven support. First of all, it can use dependenices' POMs to determine their transitive dependencies. Second, it has Maven plugin, but it works in the opposite direction - it can generate POM for your project, built with Gradle. I need the other side - something similar Gradle has for Ant - ant.importBuild() imports an Ant build into the Gradle project, and each Ant target is treated as a Gradle task. This is cool! Franky, I need much less with Maven. |
|
I'm on the verge of releasing a new version of the Springcache plugin that will feature a pretty cool new annotation-driven page fragment caching feature based on Ehcache-web. However one of the things that came up during discussions on the mailing list was full page caching. I mentioned that it was pretty straightforward and promised to blog about how to do it, so |
|
I am excited about Cloud Foundry. It promises to greatly simplify java application deployment to Amazon’s Elastic Compute Cloud (EC2). With a few clicks, you can deploy an J2EE application (e.g. Grails) to the container of your choice (Tomcat 5.5, tc Server, and more) on a fresh EC2 Linux instance backed by a MySQL database on Amazon’s Elastic Block Store (EBS). It doesn’t get much easier than this. The instance configuration automatically configures your container behind an Apache instance, which gives you some great options for hosting static content or configuring side-by-side application platforms. |