Re: Struts2 action returning dynamically created Results

2008-02-12 Thread Filipe David Manana
Nevermind. I managed to find a working solution without creating dymamic Result objects. So in the interceptor code: public String intercept(ActionInvocation invocation) throws Exception { ActionContext context = invocation.getInvocationContext(); Map session = context.getSessio

Re: Struts2 action returning dynamically created Results

2008-02-12 Thread Filipe David Manana
Yes I need. Because in the S2 configuration file I have to specify all the parameters of the query string one by one. In my app, I don't know the name and number of these parameters. So I am building a Servlet Redirect Action Result in an interceptor like this: public String intercept(ActionInvoca

Re: Struts2 action returning dynamically created Results

2008-02-12 Thread Dave Newton
Are you sure you need to do it like this? You can use OGNL expressions in your S2 configuration file to do things like set a URL to redirect to etc. Dave --- Filipe David Manana <[EMAIL PROTECTED]> wrote: > Hi, > > I am trying to use an action that returns directly instances of the > Result cla