Velocity is a Java-based template engine. It permits web page designers to reference methods defined in Java code.
Velocity
What is Velocity? Velocity is a Java-based template engine. It permits web page designers to reference methods defined in Java code. At the Jakarta Velocity Project Website, where you can download the freely available source code, a thriving and growing community of users is ready to answer questions and offer solutions to common templating problems.
Call class methods
This Example shows you
how
to call class method in velocity template.
Calculation Example
This Example shows,
how to calculate using velocity. This code displays the product name and
their price with the total amount of all product.
Reference Class Properties
This
Example shows you how
to use class properties in your velocity template.
XML handling in a template using Velocity
This Example shows you
how
to use XML file in a velocity template and
also shows that use of macro to wrap HTML tag in
velocity
template.
Define and use Macro in Velocity This
Example shows you how
to define and use macro in velocity template and also shows how
to use Iterator in velocity
template.