Table of contents

Installation

To install the JavaRebel Struts2 plugin you need to put javarebel-struts2x-plugin-[versionnumber].jar in the classpath where they can see struts2. E.g. in a web application if the Struts2 JARs are in WEB-INF/lib you should put the javarebel-spring2-plugin-VERSIONNUMBER.jar in WEB-INF/lib. JavaRebel will then discover and activate the Struts2 plugin at runtime and print the following lines in the console:

JavaRebel: Found plugin: /path/to/javarebel-struts2x-plugin-VERSIONNUMBER.jar

Using JavaRebel Struts2 Plugin

JavaRebel Struts2 plugin takes advantage of JavaRebel class reloading to reload struts 2 actions.

The plugin reloads the entire struts configuration and resests ognl caches upon javarebel reload of a class. All changes supported by javarebel should be handled.

Notes

We now support struts 2.1.6 and javarebel 2.0. Should still work on older versions of javarebel and struts 2.0.X, but I'm not testing this any more as of version 1.1.

Feedback on things that work/don't work appreciated!