THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
- Copy all these jar files into
/WEB-INF/classes/bundles
- 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" />
- Place your Spring xml files under
/META-INF/spring
in the jar file - Install the Struts 2 Spring plugin in your application
If you are going to use Velocity results, then add Velocity and Common Digester jars to your application. Using maven:
Code Block | ||||
---|---|---|---|---|
| ||||
<dependency>
<groupId>velocity</groupId>
<artifactId>velocity</artifactId>
<version>1.5</version>
</dependency>
<dependency>
<groupId>velocity-tools</groupId>
<artifactId>velocity-tools</artifactId>
<version>1.3</version>
</dependency>
<dependency>
<groupId>commons-digester</groupId>
<artifactId>commons-digester</artifactId>
<version>1.8</version>
</dependency>
|
Example
Here is how an example architecture would look:
...