You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by ra...@mac.com on 2001/04/20 14:32:31 UTC
refer to a property/method using a variable
In velocity-0.71 I could refer to a method getName() this way:
#set( $propname = "Name")
Welcome to ${company.$propname} !
This was equivalent to $company.Name but now under velocity-1.0 I get
the equivalent of
$company.toString() + ".Name"
Is there now any way to refer to a property/method using a variable?
Cheers,
Rich