mapping.setType("org.apache.struts.mock.MockAction");
appConfig2.addActionConfig(mapping);
// Configure global forward declarations
appConfig2.addForwardConfig
(new ForwardConfig("moduleForward",
"/module/forward",
false, // No redirect
false)); // Not context relative
appConfig2.addForwardConfig
(new ForwardConfig("moduleRedirect",
"/module/redirect",
true, // Redirect
false)); // Not context relative
appConfig2.addForwardConfig
(new ForwardConfig("contextForward",
"/context/forward",
false, // No redirect
true)); // Context relative
appConfig2.addForwardConfig
(new ForwardConfig("contextRedirect",
"/context/redirect",
true, // Redirect
true)); // Context relative
appConfig2.addForwardConfig
(new ForwardConfig("moduleNoslash",
"module/noslash",
false, // No redirect
false)); // Not context relative
appConfig2.addForwardConfig
(new ForwardConfig("contextNoslash",
"context/noslash",
false, // No redirect
true)); // Not context relative
}