Versions Compared

Key

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

...

Struts Actions using Spring

Make sure to add a dependency to the Spring Plugin to your pom.xml:

Code Block
xml
xml

<dependency>
    <groupId>org.apache.struts</groupId>
    <artifactId>struts2-spring-plugin</artifactId>
    <version>STRUTS_VERSION</version>
</dependency>

If you use Spring as the object factory, the StrutsSpringTestCase class can be used to write your JUnits. This class extends StrutsTestCase and has a applicationContext field of type ApplicationContext.

...