Kishore
SCJP, blog
Originally posted by Ali Pope:
I am not using Velocity for web based solution, but rather for code generation.
./pope
Originally posted by Rob Harrop:
The biggest value in Velocity comes from its simplicity and the ability to use it in a wide range of scenarios. The Velocity syntax is substantially easier to understand than JSP making it ideal for use with multi-disciplined teams.
As for XDoclet, it sources all the information it needs to render out from your source code and the metadata contained therein. With Velocity, you pass data to it manually using a Context object. As was mentioned in an earlier post, this is often performed automatically for you.
The VelocityViewServlet will map request/session/app params/attributes into the context for you, which is particularly useful when using Velocity with Struts. With Spring, the Velocity view classes will transfer data from the ModelAndView returned by your Controllers into the Velocity context. Both of these topics have coverage in the book.
Kishore
SCJP, blog
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |