You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by an...@manquehue.net on 2003/01/02 20:57:36 UTC

${$foo}} How-to?

Hi,

  How can I get content of a variable where the variable name is stored
in another variable?

Example:

 ## Begin vm file

 #set ( $foo = "Hi" )
 #set ( $var = '$foo' )

 ## Using something like

 Foo value is ${${var}}

 ## end file

I want to get 

 Foo value is Hi


Thanks in advance 




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>