<pre>Author/s : Rob Harrop Publisher : Apress Category :Miscellaneous Java Review by : Thomas Paul Rating : 9 horseshoes</pre> Velocity is an open source template framework designed to simplify the task of generating text-based output. The Velocity documentation available from Apache is short, low on examples, and leaves holes. This book fills in the gaps and gives excellent coverage of the many features that are available with Velocity.
The book starts with an introduction to Velocity and then explains how to install and configure it. The author then discusses the Velocity Template Language, examines its shortcomings, and demonstrates how to get around them. Best practices are covered early in the book. Although Velocity is normally thought of as a web-based framework, the author doesn't let us forget that it can be used for both stand-alone and web applications and gives us detailed chapters on both. Velocity tools are well covered including Anakia, which can be used to transform XML. The Velocity architecture is explained as well as ways to extend that architecture.
The examples are well thought out and give good coverage of the features of Velocity. The most interesting part of the examples is how little work it is to integrate Velocity into a well-designed framework. The author shows how Velocity fits into both Struts and Spring, demonstrating that Velocity is not meant to replace these frameworks but rather to simplify content generation in any framework. I can strongly recommend this book for anyone interested in Velocity. For anyone not interested in Velocity, the question is, why not?