Off the top of my head, I think this should work:
#foreach($key in $routeList.keySet())
Key = $key, Value = $routeList.get($key)
#end
Jack Holt wrote:
I have Spring Web Flow with which I'm using Velocity. I am using a
Hashtable to pass info to the Velocity template and can successfully
get the value side of each entry using code like this ($routeList is
the Hashtable):
#foreach($route in $routeList)
$route
#end
How would I get the key of each entry?
Do I need to use a Vector of Vectors instead perhaps? What would you suggest?
---------------------------------------------------------------------
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]