santhoshsd, santhoshsd wrote: > The following code is not working ??
How about some details? Specifically, 1. What happens when this code runs? 2. What did you expect? 3. What version of Velocity are you using? > ##Map<String,ArrayList<HashMap<String, HashMap<String,String>>>> > projectToProviders > ##Map<projectid,ArrayList<HashMap<providerid, HashMap<attribute,value>>>> > > ##Map<String,String> projectToProjectTitle > ##Map<projectid,projectTitle> You should really define some real classes. I used to work with a guy who thought that everything should be nested Vectors and Hashtables. He nearly lost his mind trying to figure out what was what. Just write real classes and be done with it: it will make your life a lot easier. Maps are great, but don't use them as a substitute for domain-specific objects. > #foreach( $project in $projectToProviders.keySet() ) > > ##Project Title :: $projectToProjectTitle.get($project) > #foreach( $providerList in $projectToProviders.get($project) ) > > #foreach( $providerMap in $providerList ) > #foreach( $providerid in > $providerMap.keySet() ) > #foreach( > $providerAttributesMap in $providerMap.get($providerid) ) > > #foreach( $attribute in > $providerAttributesMap.keySet() ) > $attribute :: > $providerAttributesMap.get($attribute) > #end > #end > #end > #end > #end > > #end Honestly, it looks like this should work. Again, what really happens? -chris
signature.asc
Description: OpenPGP digital signature
