springMacroRequestContext
Cantor, Scott
cantor.2 at osu.edu
Mon Mar 9 09:48:37 EDT 2015
On 3/9/15, 8:04 AM, "Rod Widdowson" <rdw at steadingsoftware.com> wrote:
>The template file error.vm contains referenced to $springMacroRequestContext
>(mostly to grab message contents), but later templates appear to use
>#springMessageText for a similar purpose.
>
>I'm struggling to find the documentation for either of these (any hints
>appreciated), but would it be fair to say that error.vm is out of date and
>should be rewritten to use #springMessagetext?
Well, I wasn't able to get a macro invocation to work inside a $set expression. The rules for eval get complex as in most macro languages so I didn't push it.
>It would be great if I were able to point to the Spring documentation rather
>than to try and explain what is going on here.
The Velocity view docs are at
http://docs.spring.io/spring/docs/current/spring-framework-reference/htmlsingle/#view-velocity
The macros are under that section, though the docs are somewhat minimal.
-- Scott
More information about the dev
mailing list