Re: Redirect in an interceptor

2010-06-17 Thread Stephen Turner
To answer my own question, just in case anyone comes across this: It's no longer possible to dynamically alter the configuration, so a redirect to an action that's not in the config must be done differently. I copied the idea from ExecuteAndWaitInterceptor.java: ServletRedirectResult shRe

Redirect in an interceptor

2010-06-16 Thread Stephen Turner
We are investigating moving from Struts 2.0.x to 2.1.8. We have an interceptor that does a redirect like this: ResultConfig cfg = new ResultConfig("shRes", ServletRedirectResult.class.getName()); cfg.addParam("location", "MyAction.action?"+request.getQueryString()); actionInvocat