How to access map in velocity template file
问题 when I passed a Map<String,String> in velocity template file, and when try to print the values of map it get sorted (on the basis of ASCII values). I am doing as follows: this is my velocity template file:: #set($tocList=${mapReference.mapValue}) #set($tocEntry="") <div > #foreach($tocEntry in $tocList.keySet()) <a href="#$tocEntry">$tocList.get($tocEntry)</a><br/> #end </div> My Java code is : Map<String, String> map=new HashMap<String, String>(); Map<String,HashMap> m1=new HashMap<String,