commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Grant Ingersoll" <GSIng...@syr.edu>
Subject Re: [jelly] Dynamic variable interpolation
Date Thu, 09 Jun 2005 12:26:39 GMT
Nesting doesn't work, but the context trick does.   Thanks!

>>> paul@activemath.org 6/8/2005 4:18:56 PM >>>
I doubt nested JEXL expressions would work... try it!
However, the context variable is here for you so that
    ${context.getVariable(name)}
should do the job in a clean way, I believe.

Tell us if it helps.

paul


Le 8 juin 05, à 21:41, Grant Ingersoll a écrit :
> <util:tokenize var="vars" delim=",">
>          ${foo}
> </util:tokenize>
> <j:forEach var="var" varStatus="status" items="${vars.iterator()}">
>      echo  ${  ${var}.name   }
>                 <--------------------   what is the syntax for this???
>
> </j:forEach>
>
>
> Output would be:
> A
> B
> C


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org 
For additional commands, e-mail: commons-user-help@jakarta.apache.org 



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message