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.orgImage Added.

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 other methods are currently supported and could change at any time!

Enabling Spring Integration

Turning on Spring support in WebWork is simply a matter of installing the latest Spring jars in to your classpath and then adding the following entry to webwork.properties:

Code Block
webwork.objectFactory = spring

At this point, all objects will at least try to get created by Spring. If they cannot be created by Spring, then WebWork will create the object itself.

--------------Also see Spring Integration (todo: we need to combine these articles).

What is Spring and Why do you want to use it with WebWork?

...