FreeMarker Iterate List

FreeMarker Iterate List

In previous tutorial you saw how to set up project and use FreeMarker template, print Hello World. Here you will see how to iterate list object in FreeMarker template. If you want to set up project please copy it from previous tutorial.

Important: You will have to include freemarker.x.x.x.jar in your classpath to use FreeMarker template

  • FreeMarker template with list data iteration example FreeMarkerHelloWorld.ftl:


  • Output:

FreeMarker Iterate List

Leave a Reply

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

I am not Robot *