Re: Java dynamic variable
Daniel Dekany <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
You will have to express yourself more clearly... First of all, you
didn't tell us what the error message was. Then, what's the importance
of "<#assign variables=" etc., because you nowhere refer to that
variable.
Tuesday, October 27, 2009, 12:13:07 PM, falke2009 wrote:
> 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
--
Best regards,
Daniel Dekany
------------------------------------------------------------------------------
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