you have to configure your TR.properties file. Configure the pull service by adding a line like
services.PullService.tool.<scope>.<id> = <classname>
for example:
services.PullService.tool.request.date=com.clavie.myEvents.tool.DateTool
then, you should be able to access it in Velocity with sth like: $DateTool.TodaysDate()
David
On Monday, December 30, 2002, at 03:37 PM, Eigen Technology Pty Ltd wrote:
When Turbine extract data from a database, it creates a Vector and returns
for Velocity to display.
If I want to write a Java Utility, some tabulated calculated results are
to be passed on to Velocity, i.e. Vectors not created by Turbine, how
should I do it.
I tried:
Vector TEST=null;
etc....
for(i=0; i < somelimit; ++i) {
TEST.add(someobject(i));
}
etc....
return TEST;
Velocity displays nothing, help is much appreciated.
michael
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
