velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Miller" <ch...@swebtec.com>
Subject Re: Variable method name in a macro?
Date Tue, 08 Oct 2002 15:19:51 GMT
> Does this do what you want...
>
> #set ($pre = '$book.')
> #set ($bookeval = "$pre$propertyName")
> $took.eval($bookeval)
>
> -- Denis.

YES!! :-)))) I knew I was close but I couldn't nail down the exact syntax.
Thank you very much Denis! Looks like it's time for me to read the manual a
bit more carefully wrt the single vs double quote behaviour.





--
To unsubscribe, e-mail:   <mailto:velocity-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:velocity-user-help@jakarta.apache.org>


Mime
View raw message