Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment:

corrected freemarker variable lookup ordering

...

In FreeMarker, variables are looked up in several different places, in this order:

  1. Built-in variables
  2. The value stack
  3. The action context
  4. Request scope
  5. Session scope
  6. Application scopeBuilt-in variables

Note that the action context is looked up after the value stack. This means that you can reference the variable without the typical preceding has marker (#) like you would have to when using the JSP ww:property tag. This is a nice convenience, though be careful because there is a small chance it could trip you up.

...