Assigning dynamic variables
ken4ward <[email protected]> Tue, 15 Jul 2014 04:58:56 -0700 (PDT)
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
I have a sample project I am working on, it is to dynamically get inputs from
an XML file, when I did the normal assignment static it worked, an
example:<#assign x = 0>but when i try assigning dynamically, as
this:<#assign ${x} = ${doc.db.persons.personname[0]}>neither did this work
this way:<#assign x = ${doc.db.persons.personname[0]}> it throws this
error:Encountered "{" at line 8, column 11 in src/transaction.ftl.Was
expecting one of: "=" ... "in" ... ">" ...What am I doing wrong?
--
View this message in context: http://freemarker.624813.n4.nabble.com/Assigning-dynamic-variables-tp4655201.html
Sent from the freemarker-user mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
FreeMarker-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freemarker-user