Re: How to avoid PreResultListener called twice in action chaining

2010-12-24 Thread Chris Pratt
e > Sent via BlackBerry from T-Mobile > > -Original Message- > From: Dave Newton > Date: Fri, 24 Dec 2010 12:57:53 > To: Struts Users Mailing List; > Subject: Re: How to avoid PreResultListener called twice in action chaining > > Save cookies outside the requ

Re: How to avoid PreResultListener called twice in action chaining

2010-12-24 Thread Dave Newton
Yet another reason to avoid action chaining, too. On Dec 24, 2010 2:29 PM, "Maurizio Cucchiara" wrote: > There should be at least a way to check if request live along a chain > request, it could be possible by asking for size at stack.getRoot() > > Maurizio Cucchiara > > On Dec 24, 2010 7:22 PM,

Re: How to avoid PreResultListener called twice in action chaining

2010-12-24 Thread Maurizio Cucchiara
There should be at least a way to check if request live along a chain request, it could be possible by asking for size at stack.getRoot() Maurizio Cucchiara On Dec 24, 2010 7:22 PM, wrote: How can I do that when I chain actions?. I mean, the second action is chained after the first one, but ther

Re: How to avoid PreResultListener called twice in action chaining

2010-12-24 Thread jlmagc
-Original Message- From: Dave Newton Date: Fri, 24 Dec 2010 12:57:53 To: Struts Users Mailing List; Subject: Re: How to avoid PreResultListener called twice in action chaining Save cookies outside the request then, and only add the cookie at the last minute. Dave On Dec 24, 2010 8:49 AM

Re: How to avoid PreResultListener called twice in action chaining

2010-12-24 Thread Dave Newton
the last action, not the first one. > Sent via BlackBerry from T-Mobile > > -Original Message- > From: Dave Newton > Date: Fri, 24 Dec 2010 07:47:59 > To: Struts Users Mailing List > Reply-To: "Struts Users Mailing List" > Subject: Re: How to avoid PreResu

Re: How to avoid PreResultListener called twice in action chaining

2010-12-24 Thread jlmagc
4 Dec 2010 07:47:59 To: Struts Users Mailing List Reply-To: "Struts Users Mailing List" Subject: Re: How to avoid PreResultListener called twice in action chaining Check to see if it's already there? On Fri, Dec 24, 2010 at 7:04 AM, JOSE L MARTINEZ-AVIAL wrote: > Hello al

Re: How to avoid PreResultListener called twice in action chaining

2010-12-24 Thread Dave Newton
Check to see if it's already there? On Fri, Dec 24, 2010 at 7:04 AM, JOSE L MARTINEZ-AVIAL wrote: > Hello all, > I've developed an interceptor to add cookies to the response. It works as > follows: > [..] >public String intercept(ActionInvocation invocation) throws Exception { >invoc

How to avoid PreResultListener called twice in action chaining

2010-12-24 Thread JOSE L MARTINEZ-AVIAL
Hello all, I've developed an interceptor to add cookies to the response. It works as follows: [..] public String intercept(ActionInvocation invocation) throws Exception { invocation.addPreResultListener(this); return invocation.invoke(); } public void beforeResult(Actio