File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Groovy and the fly likes Grails and Velocity Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Other Languages » Groovy
Reply Bookmark "Grails and Velocity" Watch "Grails and Velocity" New topic
Author

Grails and Velocity

Mourouganandame Arunachalam
Ranch Hand

Joined: Oct 29, 2008
Posts: 395
Is it possible to use Velocity with Grails?

Can you suggest any good resources for this?


Mourougan
Open Source leads to Open Mind
Gregg Bolinger
Sheriff

Joined: Jul 11, 2001
Posts: 15040

Grails uses GSPs which are really just JSPs but with a few more features because of being able to write groovy code in EL. Since JSP 2.0, libraries like Velocity don't really gain you anything. Why would you want to use Velocity with Grails?


My Blog | DZone Articles
Jon Dickinson
Author
Ranch Hand

Joined: Feb 24, 2009
Posts: 45
Hi Mourougan,

There is no support, that I am aware of, for Velocity in Grails.

The only benefit I can think of for using a separate templating language for the view, e.g. Velocity or Freemarker, is that you can test the views without running the entire application. However, if I wanted to unit test the views I would rather use Java or Groovy code than a template language.

After a quick Google I think it is more likely that freemarker will be supported before velocity, if either of them are on the plan.

Cheers,
Jon.


Jon Dickinson
Accolade Consulting
Grails 1.1 Web Application Development
Mourouganandame Arunachalam
Ranch Hand

Joined: Oct 29, 2008
Posts: 395
Thanks for the info Jon.
 
 
subject: Grails and Velocity
 
Threads others viewed
Using a JSP and EL to a file or ByteArrayStream?
WA #1.....word association
another small puzzle
New Desktop Projects, pure swing or ?
WA #2 ..... word association
IntelliJ Java IDE

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture