What happens if you just do

$projectToProviders
$projectToProviders.keySet()
$projectToProviders.keySet().size()

Also, is there anything in your logs indicating the problem?  Try
setting logging to debug level to be sure.

On Wed, Nov 5, 2008 at 10:38 AM, santhoshsd <[EMAIL PROTECTED]> wrote:
>
>
> Hello
> ##Map<String,ArrayList<HashMap<String, HashMap<String,String>>>>
> projectToProviders
> ##Map<projectid,ArrayList<HashMap<providerid, HashMap<attribute,value>>>>
>
> ##Map<String,String> projectToProjectTitle
> ##Map<projectid,projectTitle>
> #foreach($projectid in $projectToProviders.keySet())
>        Project Title :: $projectToProjectTitle.get($projectid) <br>
>        #foreach($providerList in $projectToProviders.get($projectid))
>
>                                #foreach($providerMap in $providerList)
>                                        #foreach($providerid in 
> $providerMap.keySet())
>                                                #foreach( 
> $providerAttributesMap in $providerMap.get($providerid))
>
>                                                        #foreach($attribute in 
> $providerAttributesMap.keySet() )
>                                                                $attribute :: 
> $providerAttributesMap.get($attribute) <br>
>                                                        #end
>                                                #end
>                                        #end
>                                #end
>        #end
>
> #end
> Hello
> ----------------------------
> Hello
> Hello
> gets printed ??
>
>
>
>
>
>
> Christopher Schultz-2 wrote:
>>
>> 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
>>
>>
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/iterating-over-Map%27s-keyset-values----tp20342223p20345590.html
> Sent from the Velocity - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to