Help with the <#list> directive with a sequence

Bruce Perryman <[email protected]> Tue, 31 Jan 2006 09:00:02 -0800 (PST)
Newsgroups gmane.comp.text.fmpp
Message-ID <[email protected]>
--0-816389648-1138726802=:30999
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

Hi,

I've inherited a project that uses freemarker and I need help understandi=
ng a concept. I am very new to freemarker.

A Collection (List) is being used with a <#list> directive namely if the =
collection is named stuff, the <#list> is:

<#list stuff as x>

and its elements as

${x.fieldname} where fieldname is an element in the collection.

What confuses me is that the fieldnames used aren't consistent with the d=
efinition of the collection. For example, if the collection is defined as=
 having fields day_of_week and emp_Id, the syntax of the list references

${x.dayOfWeek} and ${x.empID}

How do I find out where the mapping of the names takes place?

Thanks for your help in advance.

		=09
---------------------------------
 Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews, & more on =
new and used cars.
--0-816389648-1138726802=:30999
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

Hi,<br><br>I've inherited a project that uses freemarker and I need help =
understanding a concept. I am very new to freemarker.<br><br>A Collection=
 (List) is being used with a &lt;#list&gt; directive namely if the collec=
tion is named stuff, the &lt;#list&gt; is:<br><br>&lt;#list stuff as x&gt=
;<br><br>and its elements as<br><br>${x.fieldname} where fieldname is an =
element in the collection.<br><br>What confuses me is that the fieldnames=
 used aren't consistent with the definition of the collection. For exampl=
e, if the collection is defined as having fields day_of_week and emp_Id, =
the syntax of the list references<br><br>${x.dayOfWeek} and ${x.empID}<br=
><br>How do I find out where the mapping of the names takes place?<br><br=
>Thanks for your help in advance.<br><p>
=09
		<hr size=3D1> <a href=3D"http://us.rd.yahoo.com/evt=3D38381/ ylc=3DX3oD=
MTEzcGlrdGY5BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDMWF1dG9z/*http://auto=
s.yahoo.com/index.html ">Yahoo! Autos</a>. Looking for a sweet ride? Get =
pricing, reviews, & more on new and used cars.
--0-816389648-1138726802=:30999--


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642