Iterate Map Velocity Template

Iterate Map Velocity Template

Iterate map object in velocity template is same as we iterate map in java. To make it more clear I will create List and put map inside it and iterate in template using small project:

  • Maven project structure:

Iterate Map Velocity Template

  • pom.xml:

  • SampleRenderMap.vm

  • IterateMapVelocityTemplate.java:

  • Output:

Iterate Map 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 *