instagram

Apache Velocity

Apache Velocity

Apache Velocity Tutorial Part 1

Apache velocity is being used by developer to create dynamic string from predefine template.

Read More

Apache Velocity Part 2 – Loop (foreach)

This tutorial is about #foreach loop in velocity. Velocity has #foreach element for looping. Please find below template for more details.

Read More

Apache Velocity Part 3 – #Set

This tutorial is about #set element in velocity template.

Read More

Apache Velocity Part 4 – Comments in Template

There are three types of comments you can write in Velocity Template.

Read More

Apache Velocity Part 5 – condition #if

Apache Velocity has if condition like all other programming language. Find below syntax of #if in velocity.

Read More

Apache Velocity Part 6 – include and parse

In velocity template you can import local file using include or you can import other template using parse

Read More

Apache Velocity Part 7 – Context

In Apache velocity, There are three main ways to pass data from Java class to VM template. 1. Key and Value mapping 2. Key and Bean/POJO (Object) mapping 3. Key and Inner Map mapping

Read More

Apache Velocity Part 8 – Properties

You can store, access and modify properties available in Velocity class. Velocity has its own default properties available at below path. “org/apache/velocity/runtime/defaults/velocity.properties”

Read More

Share