Hello,

My example code is:

#set($url = $view.getURL($experiment, $realm))

In this case $view holds a reference to an object to a type View (this is a 
type that I have defined).  The View class has the public method:

Public String getURL(WlaExperiment experiment, WlaRealm realm)

These are all types used in our business logic.  

When I hook up a debugger, I find that the getURL method never gets called.  In 
the velocity log file I see "RHS of #set statement is null. Context will not be 
modified."

Does Velocity support calling methods of objects that take parameters?  In the 
velocity-1.5 user guide, I saw the following: "$person.setAttributes( 
["Strange", "Weird", "Excited"] )", which seems to suggest that it does.

Any help in this area would be greatly appreciated.  I am using Velocity Tools 
1.1 and Velocity Engine 1.4.

Thank you very much,
Steve

Reply via email to