THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
This plugin does not support webwork-style ActionContext, so all Actions that use the Action context must be updated. Again, this is usually only requires updating the package for ActionContext.
Update references to ActionMapperFactory
Previously, an ActionMapper would be retrieved via the following code:
Code Block |
---|
ActionMapper mapper = ActionMapperFactory.getMapper();
|
In Struts 2, the ActionMapper must be retreived via the internal Guice container:
Code Block |
---|
Dispatcher du = Dispatcher.getInstance();
Configuration config = du.getConfigurationManager()
.getConfiguration();
ActionMapper mapper = config.getContainer().getInstance(
ActionMapper.class);
|