controller.setForwardPattern("/forwarding$M$P");
controller.setInputForward(true);
controller.setPagePattern("/paging$M$P");
// Configure global forward declarations
moduleConfig3.addForwardConfig(new ForwardConfig("moduleForward",
"/module/forward", false)); // No redirect, same module
moduleConfig3.addForwardConfig(new ForwardConfig("moduleRedirect",
"/module/redirect", true)); // Redirect, same module
moduleConfig3.addForwardConfig(new ForwardConfig("contextForward",
"/forward", false, // No redirect
"/context")); // Specify module
moduleConfig3.addForwardConfig(new ForwardConfig("contextRedirect",
"/redirect", true, // Redirect
"/context")); // Specify module
moduleConfig3.addForwardConfig(new ForwardConfig("moduleNoslash",
"module/noslash", false)); // No redirect, same module
moduleConfig3.addForwardConfig(new ForwardConfig("contextNoslash",
"noslash", false, // No redirect
"/context")); // specify module
}