From: Baruch Even <baruch@ev...> - 2001-05-13 18:54:14
I've started to use TemplateServer and am having a problem. I'm trying
to loop through a dictionary and display the info something like:
for key in dict.keys():
print key + ' - ' + dict[key]
I have now idea how to do that in TemplateServer (0.7).
before going any further download 0.7.1 for a bug-fix.
> for key in dict.keys():
> print key + ' - ' + dict[key]
> I have now idea how to do that in TemplateServer (0.7).
This will do it:
#for $key, $val in $dict.items
$key - $val
dict should be data member of the servlet class.