PDA

View Full Version : #springUrl using Velocity


jopaki
Aug 28th, 2005, 03:49 PM
Hi all,

I'm trying to use #springUrl(...) macro in my velociy template but the following:

#springUrl("admin.css")

outputs as:

$springMacroRequestContext.getContextPath()admin.c ss


Any ideas?

Thanks, Jon

paul.barry
Aug 28th, 2005, 10:17 PM
Do you have this property set on your VelocityViewResolver?
<property name="exposeSpringMacroHelpers"><value>true</value></property>

jopaki
Aug 29th, 2005, 12:15 AM
Yes, but as it turned out, the view resolver wasn't being hit because I was using a VelocityLayoutView type view with explicit url refs to velocity template files within. All is good now. Thanks, Jon