access data LinkedHashMap.LinkedHashMap
larosagiorgio <[email protected]> Mon, 17 Jun 2013 02:45:04 -0700 (PDT)
| Newsgroups | gmane.comp.web.freemarker.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi,
i would like access to this class Java (resultSet of Smooks):
List
-LinkedHashMap (in position 0 of List)
-LinkedHashMap
How may0 access this structure by Freemaker?
I tryed with this template, but nothing.
<#list trRS[0] as keys>
<#list keys as keys2> ${keys[keys2]} -->retrieve the value of child
LinkedHashMap
</#list>--> for ciclyng keys of child LinkedHashMap!!!
</#list>--> for ciclyng keys of my first LinkedHashMap!!!
trRS is my List.
trRS[0] is my first LinkedHashMap...here freemakers throw error:
Expected collection or sequence. trRS[0] evaluated instead to
freemarker.template.SimpleHash on line 2, column 24 in free-marker-template.
The problematic instruction:
----------
==> list trRS[0] as keys [on line 2, column 17 in free-marker-template]
----------
Java backtrace for programmers:
----------
freemarker.template.TemplateException: Expected collection or sequence.
trRS[0] evaluated instead to freemarker.template.SimpleHash on line 2,
column 24 in free-marker-template.
Thanks for your help!!!I hope.
--
View this message in context: http://freemarker.624813.n4.nabble.com/access-data-LinkedHashMap-LinkedHashMap-tp4654600.html
Sent from the freemarker-devel mailing list archive at Nabble.com.
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev