Java dynamic variable

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

I have following problem,

i want to access java variable dynamic. Example: A HashSet<Answer> will be
iterated and the Answer class has variable A,B,C,D . but 

I tried following script but it did not work
Input: variables are A, C and iteratedElements HashSet<Answer>

<#assign variables=parameters.variables.split(',') />

	<#list Request[iterateElements] as element>	
					
						<tr>
							<td><input value="${element.variables[0]}"/></td>  //value of
variable A must be showed
							<td><input value='${element.variables[1]}'/></td> //variable B
						</tr>
	</#list>

thanks in advance
-- 
View this message in context: http://www.nabble.com/Java-dynamic-variable-tp26075896p26075896.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.