Back Forum Reply New

Velocity tool box amp; VelocityEngine

Hi all,

I'm trying to use a velocity template to send emails to clients after they've completed a booking. This works well
when I use the VelocityEngine! Now I need to format some dates in the template. I wanted to use the toolbox but I'm having some problems, see config below.

As far as I understood by configuring the tool box and pointing to a template the date formatter would be dropped into the velocity context? This doesn't seem to be the case amp; furthermore Velocity appears to be getting started twice. Can anyone help me on this?  
/Colin
lt;bean id=quot;velocityConfigquot; class=quot;org..web.servlet.view.veloci  ty.VelocityConfigurerquot;gt;       lt;property name=quot;resourceLoaderPathquot;gt;lt;valuegt;/velocity/lt;/valuegt;lt;/propertygt;   lt;/beangt;   
   lt;bean id=quot;velocityEnginequot; class=quot;org..ui.velocity.VelocityEng  ineFactoryBeanquot;gt;       lt;property name=quot;resourceLoaderPathquot;gt;lt;valuegt;/velocity/lt;/valuegt;       lt;/propertygt;       lt;property name=quot;velocityPropertiesquot;gt;lt;propsgt;    lt;prop key=quot;resource.loaderquot;gt;filelt;/propgt;    lt;prop key=quot;file.resource.loader.classquot;gt;org.apache.veloci  ty.runtime.resource.loader.FileResourceLoaderlt;/propgt;    lt;prop key=quot;file.resource.loader.cachequot;gt;falselt;/propgt;lt;/propsgt;       lt;/propertygt;   lt;/beangt;      lt;bean id=quot;velocityToolboxquot; class=quot;org..web.servlet.view.veloci  ty.VelocityToolboxViewquot;gt;          lt;property name=quot;toolboxConfigLocationquot;gt;lt;valuegt;/WEB-INF/velocitytoolbox.xmllt;/valuegt;       lt;/propertygt;           lt;property name=quot;uclquot;gt;lt;valuegt;confirmTemplate.vmlt;/valuegt;       lt;/propertygt;       lt;/beangt;
¥
Back Forum Reply New