Using Variable as a List name

rizzz86 <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Hi all,

I am trying to use any variable as a name of list ... i.e.,

<#foreach list1 in argList1>
     <#foreach list2 in list1> 
                     // The name of list2 is the first element of list1
     </#foreach>
</#foreach>

Following error occured if I pass variable as a list name "Expected
collection or sequence. list1 evaluated instead to
freemarker.ext.beans.StringModel"

Can anyone help ?

rizzz86

-- 
View this message in context: http://www.nabble.com/Using-Variable-as-a-List-name-tp25781062p25781062.html
Sent from the freemarker-user mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.