Versions Compared

Key

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

...

  1. Copy all these jar files into /WEB-INF/classes/bundles
  2. Make sure that the following properties are set(with the listed values) or not set at all in struts.xml or struts.properties in your webapp:
    Code Block
    XML
    XML
    <constant name="struts.objectFactory" value="osgi" />
    <constant name="struts.objectFactory.delegate" value="spring" />
    <constant name="struts.freemarker.manager.classname" value="org.apache.struts2.osgi.BundleFreemarkerManager" />
    
  3. Place your Spring xml files under /META-INF/spring in the jar file
  4. Install the Struts 2 Spring plugin in your application

Example

Here is how an example architecture would look:

...