Iterate List Velocity Template

Iterate List Velocity Template

To iterate list object using Apache velocity template first you should load the template and create/put list object in it. I will show this with small project:

  • Final maven project structure:

Iterate List Velocity Template

  • pom.xml

  • SampleRenderList.vm

  • IterateListVelocityTemplate.java

  • Output:

Iterate List Velocity Template

  • For more details on Apache Velocity please read it official tutorial here

download Download project: SendEmailVelocityTemplate

Leave a Reply

Your email address will not be published. Required fields are marked *