News: Creating Stand-Alone Applications with Velocity
TSS has excerpted three chapters from the 'Pro Jakarta Velocity' book, by Rob Harrop. The introductory chapter discusses template engines, their uses and reviews Velocity's feature set. Chapter 2 takes you through Velocity installation, writing templates, and creating some output. Chapter 5 shows you how to build full applications with Velocity, both for the desktop and the Web.
- Posted by: Nate Borg
- Posted on: August 11 2004 16:34 EDT
Read Introducing Velocity, Getting Started with Velocity and Creating Stand-Alone Applications with Velocity
- Velocity is better than jsp by roger le on August 11 2004 21:25 EDT
- Try Velocity online without compiling ! by Franck Arnulfo on August 12 2004 01:59 EDT
- Creating Stand-Alone Applications with Velocity by D S on August 12 2004 08:40 EDT
It's simply and availability!
Self promo :)
Check VeloGUI http://www.pipoware.com/velogui.
This is a simple Java Web Start application that embeds a beanshell interpreter for building context and a velocity edit windows.
So you can merge context with velocity template online to see the result without compiling. Usefull for testing ;-)
A quite usefull application to try Velocity templates !
VeloGUI is very cool, and I feature it in the book at some point! It is most useful for prototyping a template quickly without having to write any Java code.
If you're looking for feedback about these chapters:
Overall, it looks good. I know very little about Velocity but what I've seen here has made me want to learn more.
My one comment would be that in Chapter 5 (Creating Stand-Alone Applications with Velocity) there is too much about setting up the Swing UI. This is a book about Velocity, not Swing, so why do we need to be shown pages of code setting up GridBagConstraints? Maybe you might want to show it once if you really want to convince the reader that this is based in reality rather than just being smoke and mirrors, but I don't need to see every single label and every single text box being constructed. I'll take your word for it that it gets done. If you were to make the code available for download as is common with many books nowadays, then anyone who wanted to follow through the whole thing line by line could get hold of the source code. I just felt as if I was wading through pages of code I wasn't interested in before I got to the real meat of the chapter - how Velocity fits into the picture.
Thanks for your feedback. The reason I chose to show the Swing code was because I know a lot of people are unfamiliar with Swing and I just wanted to ensure that everyone would get the same out the book. That said I don't want to overshadow the Velocity code with Swing code and I will certainly bear your comments in mind when it comes time to review the work!