Grails Tutorials

Your Source of Grails & Groovy Tutorial, How To, and Example Links

Log In or Register

Tutorial Links

Displaying 1 - 10 from 1386 tutorials

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.


  • Currently 0

0

0 votes; 226 clicks; posted on 24-Feb-2010

Tags: grails;

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:


  • Currently 0

0

0 votes; 138 clicks; posted on 24-Feb-2010

Tags: grails; testing;


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.


  • Currently 0

0

0 votes; 262 clicks; posted on 23-Feb-2010

Tags: grails; i18n;

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.


  • Currently 5.0

5.0

2 votes; 449 clicks; posted on 23-Feb-2010

Tags: grails;

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.


  • Currently 0

0

0 votes; 203 clicks; posted on 23-Feb-2010

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


  • Currently 0

0

0 votes; 127 clicks; posted on 23-Feb-2010

Tags: groovy;


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.


  • Currently 0

0

0 votes; 289 clicks; posted on 23-Feb-2010

Tags: grails; acegi; security; plugin;

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.


  • Currently 0

0

0 votes; 107 clicks; posted on 23-Feb-2010

Tags: maven; gradle;

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


  • Currently 5.0

5.0

1 votes; 155 clicks; posted on 23-Feb-2010

Tags: grails; plugin; gsp;

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.


  • Currently 0

0

0 votes; 228 clicks; posted on 21-Feb-2010

Tags: grails; Apache; deploy;


502 users registered

1386 posts currently