velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Chodakowski" <jas...@hyperworx.com>
Subject RE: Template not rendering
Date Sun, 03 Apr 2005 13:21:18 GMT
Doh! Thanks... knew it was something stupid.

Cheers,

J --

-----Original Message-----
From: Ilkka Priha [mailto:impriha@surfeu.fi] 
Sent: Sunday, April 03, 2005 9:09 AM
To: Velocity Users List
Subject: Re: Template not rendering

You've a typo, it's Map.keySet() not Map.keysSet().

-- Ilkka

Jason Chodakowski wrote:
> Any thoughts as to why this template snippet won't render? CatMap is a
> java.util.HashMap - should it be a Hashtable instead?
> 
> Thoughts?
> 
> Thanks,
> 
> J --
> 
> #foreach($Category in $CatMap.keysSet())
> #set($SKUS = $CatMap.get($Category))
> <P><B>${Category.Name}</B></P>
> <!-- Category ${Category.Name} -->
> #foreach($SKU in $SKUS)
> <a href="/foo?do=snot&id=${SKU.Id}">${SKU.Description}</a><BR>
> #end
> <!-- End Category ${Category.Name} -->
> #end
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message