Versions Compared

Key

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

...

Note

There's a set of cases during error handling where this mechanism doesn't work, because various low-level error conditions trigger outside of Spring Web Flow actually running our code, so they happen without our control and don't get the necessary objects injected into Velocity. As an example, a lot of the back button errors you'll see cause low-level exceptions and the error view wouldn't have a $custom variable defined, nor most of the rest we populate.

The step by step:

  1. Define a map bean in conf/global.xml containing a logging category bean.

  2. Access the bean in one of your views.

First define the map and the logging object:

...