Mill (Iterator) Viewtool

The $mill (iterator) Velocity Viewtool is a convenience tool to use with #foreach loops. It wraps a list allowing you to specify a condition to terminate the loop, and to reuse the same list in different loops.

Toolbox.xml Configuration#


The following shows how the mill tool is mapped in the toolbox.xml file:

	<tool>
		<key>mill</key>
		<scope>request</scope>
		<class>org.apache.velocity.tools.generic.IteratorTool</class>
	</tool>