velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alec Swan <>
Subject Passing an object as a parameter to a method
Date Tue, 20 Sep 2011 23:07:05 GMT

I am trying to get the following template to work:

I expect this template to call method Report#generate(User) and pass
project.manager property (of type User) as a parameter.

I tested that ${project.manager} returns correct result and that
${report.generate(null)} calls Report#generate(User) and throws an
NPE. However, calling ${report.generate(project.manager)} results in a
syntax error.



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message