You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Rohnny Moland <rm...@gmail.com> on 2006/12/17 11:09:01 UTC

[commons-jelly] creating nested variables

hi,

What is the syntax for creating nested variables in commons-jelly.

Example:
	<j:set var="x" value="resolvedx"/>
	<j:set var="y.${x}" value="resolvedy"/>
	
	<j:out value="${y.${x}}"/>


Feels like I have tried all the combinations in the whole world now. :)


Thanks in advance,
Rohnny

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


Re: [commons-jelly] creating nested variables

Posted by Mark Tombs <ma...@gmail.com>.
On Sunday 17 December 2006 10:09, Rohnny Moland wrote:
> hi,
>
> What is the syntax for creating nested variables in commons-jelly.
>
> Example:
> 	<j:set var="x" value="resolvedx"/>
> 	<j:set var="y.${x}" value="resolvedy"/>
>
> 	<j:out value="${y.${x}}"/>
>

try <j:set var="${y.x}" />


>
> Feels like I have tried all the combinations in the whole world now. :)
>
>
> Thanks in advance,
> Rohnny
>
> ---------------------------------------------------------------------
> 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


Re: [commons-jelly] creating nested variables

Posted by Rohnny Moland <rm...@gmail.com>.
Ok, found the answer here after a lot of searching:
<http://marc.theaimsgroup.com/?l=jakarta-commons-user&m=111827434530928&w=2>

On 12/17/06, Rohnny Moland <rm...@gmail.com> wrote:
> hi,
>
> What is the syntax for creating nested variables in commons-jelly.
>
> Example:
>         <j:set var="x" value="resolvedx"/>
>         <j:set var="y.${x}" value="resolvedy"/>
>
>         <j:out value="${y.${x}}"/>
>
>
> Feels like I have tried all the combinations in the whole world now. :)
>
>
> Thanks in advance,
> Rohnny
>

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