[ ... ]
logger.debug("Creating velocity context");
VelocityContext ctxt = new VelocityContext();
ServerData sd = new ServerData("www.tribe.net",80,"http","/tribe/servlet","");
TemplateLink link = new TemplateLink(sd);
ctxt.put("link",link);
[ ... ]
Hope this helps...
-Brian
On Apr 3, 2004, at 3:33 PM, Dave Briccetti wrote:
Hi. I have created a turbine service which periodically sends off emails
using Velocity. I would like to use $link in the velocity templates, but
I don't think it's in the context returned by
TurbineVelocity.getContext().
I've tried creating a TemplateLink in a global scope, but the initialization fails.
Suggestions? Thanks. -- Dave Briccetti Software Consulting http://www.davebsoft.com, (925) 945-7565
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
