Versions Compared

Key

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

Spring is an, among other things, an Inversion of Control framework. As of WebWork 2.2, it is the only supported IoC container. You can find out more about Spring at http://www.springframework.org.

Note

This section covers the only supported Spring integration technique. However, there are many other ways to tie in to Spring with WebWork. Please see Other Spring Integration for more info. Note that none of these the other methods are currently supported and could change at any time!

...

Tip
titleMore ApplicationContext configuration files needed?

Since the Spring integration uses a standard Listener, it can be configured to support configuration files other than applicationContext.xml.
Adding the following to your web.xml will cause the Spring ApplicationContext to be inititalized from all files matching the given pattern:

Code Block
xml
xml
<!-- Context Configuration locations for Spring XML files -->
<context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>/WEB-INF/applicationContext-*.xml,classpath*:applicationContext-*.xml</param-value>
</context-param>

See the Spring documentation for a full description of this parameter.

...