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());
actionInvocation.getProxy().getConfig().addResultConfig(cfg);
return "shRes";
In upgrading (which involves going from xwork 2.0.4 -> 2.1.6) I found that
the ResultConfig constructors are now protected and that there's a
ResultConfig.Builder class that is used to create a ResultConfig object.
That gets me to:
ResultConfig.Builder configBldr = new ResultConfig.Builder("shRes",
ServletRedirectResult.class.getName());
configBldr.addParam("location",
"MyAction.action?"+request.getQueryString());
ResultConfig cfg = configBldr.build();
actionInvocation.getProxy().getConfig().addResultConfig(cfg);
return "shRes";
However, this won't compile because ActionConfig no longer provides a
addResultConfig() method. I can't find any info on the Open Symphony site
or through Google that tells me how to do what I want in the new world.
Can anyone point me in the right direction?
Thanks,
Steve
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org