jopaki
Oct 5th, 2005, 01:07 AM
When I declare a stand-alone VelocityEngine:
<bean id="velocityEngine" class="org.springframework.ui.velocity.VelocityEngineFact oryBean">
<property name="resourceLoaderPath">
<value>/WEB-INF/views/</value>
</property>
<property name="configLocation">
<value>WEB-INF/velocity.properties</value>
</property>
</bean>
<bean id="velocityConfigurer" class="org.springframework.web.servlet.view.velocity.Velo cityConfigurer">
<property name="velocityEngine" ref="velocityEngine"/>
<!--<property name="resourceLoaderPath"><value>/WEB-INF/views/</value></property>-->
</bean>
as opposed to an implicit one:
<bean id="velocityConfigurer" class="org.springframework.web.servlet.view.velocity.Velo cityConfigurer">
<property name="resourceLoaderPath"><value>/WEB-INF/views/</value></property>
</bean>
spring.vm is not picked up by the VelocityConfigurer.
So how do I now coerce the VelocityConfigurer to add the spring.vm macros to the "independent" velocity engine?
thanks.
<bean id="velocityEngine" class="org.springframework.ui.velocity.VelocityEngineFact oryBean">
<property name="resourceLoaderPath">
<value>/WEB-INF/views/</value>
</property>
<property name="configLocation">
<value>WEB-INF/velocity.properties</value>
</property>
</bean>
<bean id="velocityConfigurer" class="org.springframework.web.servlet.view.velocity.Velo cityConfigurer">
<property name="velocityEngine" ref="velocityEngine"/>
<!--<property name="resourceLoaderPath"><value>/WEB-INF/views/</value></property>-->
</bean>
as opposed to an implicit one:
<bean id="velocityConfigurer" class="org.springframework.web.servlet.view.velocity.Velo cityConfigurer">
<property name="resourceLoaderPath"><value>/WEB-INF/views/</value></property>
</bean>
spring.vm is not picked up by the VelocityConfigurer.
So how do I now coerce the VelocityConfigurer to add the spring.vm macros to the "independent" velocity engine?
thanks.