On Tue, 24 Aug 2010 12:44:36 -0400, Dale Newfield <d...@newfield.org> wrote:

The execAndWait interceptor used to do something like this for the
"wait" result--I'd look there for how it works around the change
requiring these be immutable.

-Dale

Thanks Dale - that helped me figure it out.

We can no longer alter the config inside an interceptor; this is a feature (see WW-3068).

What I now do in my case (I was inserting a redirect result into the config) is inject the redirect result into the container:

  ServletRedirectResult srd = new ServletRedirectResult();
  container.inject(srd);
  srd.setLocation("SearchHelp.action?"+request.getQueryString());
  srd.setPrependServletContext(true);
  srd.execute(actionInvocation);                
  return Action.NONE;

This is similar to the injection of the FreeMarkerResult in execAndWait.

Thanks,
Steve

--
Stephen Turner
Senior Programmer/Analyst - MIT IS&T

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to