Re: Call a forward or a redirect inside an interceptor.

2015-03-09 Thread ersinghlovepr...@gmail.com
vepreet Singh -- View this message in context: http://struts.1045723.n5.nabble.com/Call-a-forward-or-a-redirect-inside-an-interceptor-tp3484464p5717505.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubsc

Re: Call a forward or a redirect inside an interceptor.

2008-09-09 Thread Chris Pratt
That's normally handled more appropriately in an Action, but if you must do it in an interceptor, you may have to go with Nuwan's idea of using request.sendRedirect from the Interceptor and returning null without calling invoke() (*Chris*) On Tue, Sep 9, 2008 at 9:22 AM, Ahmed ALAMI <[EMAIL PROT

Re: Call a forward or a redirect inside an interceptor.

2008-09-09 Thread Ahmed ALAMI
Great, but it doesn't feet my need. The result to forward to is dynamic and depends on the execution of the interceptor. Chris Pratt a écrit : Sure, normally you would set up some in your struts.xml that your interceptor will redirect to then just return the name of the result from your inter

Re: Call a forward or a redirect inside an interceptor.

2008-09-09 Thread Nuwan Chandrasoma
you can use response.sendRedirect() method inside an interceptor. Ahmed ALAMI wrote: Hello everybody, Is there a way using the struts 2 API to forward or redirect to a url inside an interceptor instead of making a actionInvocation.invoke(). Thanks for reply. -

Re: Call a forward or a redirect inside an interceptor.

2008-09-09 Thread Chris Pratt
Sure, normally you would set up some in your struts.xml that your interceptor will redirect to then just return the name of the result from your interceptor without ever calling actionInvocation.invoke(). (*Chris*) On Tue, Sep 9, 2008 at 9:05 AM, Ahmed ALAMI <[EMAIL PROTECTED]> wrote: > Hello

Call a forward or a redirect inside an interceptor.

2008-09-09 Thread Ahmed ALAMI
Hello everybody, Is there a way using the struts 2 API to forward or redirect to a url inside an interceptor instead of making a actionInvocation.invoke(). Thanks for reply. - To unsubscribe, e-mail: [EMAIL PROTECTED] For addit