<#-- Display all cities, and put a "Lettrine" representing the start letters --> <@s.set name="i" value="0"/> <@s.set name="lastLetter" value=""/> <@s.iterator value="nearestCities" status="cityStatus"> <#-- <@s.if test="#lastLetter != ''">
if is not first element --> <@s.if test="#i % 10 == 0" > <#-- We close the last column if it is not the first column --> <@s.if test="#i != 0"> <#-- We create a new column every 10 cities or so -->
<@s.if test="cityName.charAt(0) != #lastLetter"> <@s.if test="!(#i % 10 == 0)" >
<@s.set name="lastLetter" value="cityName.charAt(0)"/>
<@s.property value="cityName.charAt(0)" />
<#-- each city has to contain div tag --> <@s.url id="cityUrl" action="city" namespace="/" includeParams="none"> <@s.param name="featureId" value="%{featureId}" /> <@s.property value="cityName" /> <#-- <@s.if test="!#cityStatus.last"> - --> <@s.set name="i" value="#i+1"/> <@s.if test="#cityStatus.last"> <#-- We close the last column if it is not the first column -->