Hello,
I'm using the spring velocity macros in a page and they were working when I was using the ResourceBundleViewResolver but I needed to switch to the UrlBasedViewResolver so I can use the 'forward:action.do' syntax to forward to new controllers but now I get the errors from velocity. I'm assuming this is because the springMacroRequestContext is not available, is that correct? Am I using the correct attribute, or is there another property I need to set?
my view resolver config look like:
TIACode:<bean id="viewResolver" class="org.springframework.web.servlet.view.UrlBasedViewResolver"> <property name="suffix"> <value>.vm</value> </property> <property name="prefix"> <value>/</value> </property> <property name="viewClass"> <value>org.springframework.web.servlet.view.velocity.VelocityToolboxView</value> </property> <property name="attributes"> <props> <prop key="exposeSpringMacroHelpers">true</prop> </props> </property> </bean>
Michael Fortin


Reply With Quote