Announcement Announcement Module
Collapse
No announcement yet.
#springUrl using Velocity Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • #springUrl using Velocity

    Hi all,

    I'm trying to use #springUrl(...) macro in my velociy template but the following:
    Code:
    #springUrl("admin.css")
    outputs as:
    Code:
    $springMacroRequestContext.getContextPath()admin.css
    Any ideas?

    Thanks, Jon

  • #2
    Do you have this property set on your VelocityViewResolver?
    Code:
    <property name="exposeSpringMacroHelpers"><value>true</value></property>

    Comment


    • #3
      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

      Comment

      Working...
      X