The following code is found in velocity user guide 
http://velocity.apache.org/engine/devel/user-guide.html#evaluate
http://velocity.apache.org/engine/devel/user-guide.html#evaluate :

#set($source1 = "abc")
#set($select = "1")
#set($dynamicsource = "$source$select")
#evaluate($dynamicsource)

It is supposed to print "abc" according to the user guide but in fact, the
result to me is that it prints: 
#evaluate($source1) 

Do I miss something?

I am very new to velocity and I know it is a silly question.  Could anyone
kindly tell me why I have different result and how could I correctly use
#evaluate directive to print the right answer?




-- 
View this message in context: 
http://www.nabble.com/-evaluate-directive-tf4284105.html#a12195187
Sent from the Velocity - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to