Re: Struts seems to reset the action instance while its still in interceptor

2013-11-04 Thread Lukasz Lenart
2013/11/4 Ali Akhtar : > Thanks Lukasz, this solved the problem. I really appreciate your help. > Perhaps it should be mentioned more clearly in the documentation that > interceptors are meant to be singletons. (If its already mentioned and I > missed it, I apologize). http://struts.apache.org/rel

Re: Struts seems to reset the action instance while its still in interceptor

2013-11-04 Thread Ali Akhtar
Thanks Lukasz, this solved the problem. I really appreciate your help. Perhaps it should be mentioned more clearly in the documentation that interceptors are meant to be singletons. (If its already mentioned and I missed it, I apologize). One more question which I'd appreciate if you could answer.

Re: Struts seems to reset the action instance while its still in interceptor

2013-11-04 Thread Lukasz Lenart
2013/11/4 Ali Akhtar : > no, pure struts. The class that it extends from is included in the same > package. Not sure why it'd look like a singleton First of all your interceptor is broken - each interceptor is a singleton so you cannot change its state as thus will affect request processing - whic

Re: Struts seems to reset the action instance while its still in interceptor

2013-11-04 Thread Ali Akhtar
no, pure struts. The class that it extends from is included in the same package. Not sure why it'd look like a singleton On Mon, Nov 4, 2013 at 12:07 PM, Lukasz Lenart wrote: > 2013/11/4 Ali Akhtar : > > For me, this gives this output: > > > > Original: alia.strutsTest.actions.ajax.FooBar@14d03c

Re: Struts seems to reset the action instance while its still in interceptor

2013-11-03 Thread Lukasz Lenart
2013/11/4 Ali Akhtar : > For me, this gives this output: > > Original: alia.strutsTest.actions.ajax.FooBar@14d03c1, now: > alia.strutsTest.actions.ajax.FooBar@1318c29 > > Original: alia.strutsTest.actions.ajax.FooBar@14d03c1, now: > alia.strutsTest.actions.ajax.FooBar@1ef284c > > Original: alia.str

Re: Struts seems to reset the action instance while its still in interceptor

2013-11-03 Thread Ali Akhtar
M, Martin Gainty wrote: > >> >> >> >> >> >> > Date: Mon, 4 Nov 2013 02:49:12 +0500 >> > Subject: Re: Struts seems to reset the action instance while its still >> in interceptor >> > From: ali.rac...@gmail.com >> > To: use

Re: Struts seems to reset the action instance while its still in interceptor

2013-11-03 Thread Ali Akhtar
does ai.invokeActionOnly(). Now, when it compares action.toString() to ai.getAction().toString(), the results are different. Is this the expected behavior? On Mon, Nov 4, 2013 at 4:14 AM, Martin Gainty wrote: > > > > > > > Date: Mon, 4 Nov 2013 02:49:12 +0500 > > Subject: Re:

RE: Struts seems to reset the action instance while its still in interceptor

2013-11-03 Thread Martin Gainty
> Date: Mon, 4 Nov 2013 02:49:12 +0500 > Subject: Re: Struts seems to reset the action instance while its still in > interceptor > From: ali.rac...@gmail.com > To: user@struts.apache.org > > Hopefully I am incorrect, however the following lines in my interceptor

Re: Struts seems to reset the action instance while its still in interceptor

2013-11-03 Thread JOSE L MARTINEZ-AVIAL
can you provide the code of your action? 2013/11/3 Ali Akhtar > One more thing, in my actual code, I am doing ai.invokeActionOnly(), rather > than ai.invoke() . > > > On Mon, Nov 4, 2013 at 2:49 AM, Ali Akhtar wrote: > > > Hopefully I am incorrect, however the following lines in my interceptor

Re: Struts seems to reset the action instance while its still in interceptor

2013-11-03 Thread Ali Akhtar
One more thing, in my actual code, I am doing ai.invokeActionOnly(), rather than ai.invoke() . On Mon, Nov 4, 2013 at 2:49 AM, Ali Akhtar wrote: > Hopefully I am incorrect, however the following lines in my interceptor's > intercept method: > > action = ai.getAction(); > String result

Re: Struts seems to reset the action instance while its still in interceptor

2013-11-03 Thread Ali Akhtar
Hopefully I am incorrect, however the following lines in my interceptor's intercept method: action = ai.getAction(); String result = ai.invoke(); logger.debug("Orig action : " + action.toString() +" , now : " + ai.getAction().toString() ); Do produce two different toString() codes

Re: Struts seems to reset the action instance while its still in interceptor

2013-11-03 Thread Dave Newton
You are incorrect. Actions are instantiated per-request. Other than that, you will need to provide a working example that exhibits the incorrect behavior. On Nov 3, 2013 12:57 PM, "Ali Akhtar" wrote: > Hello, > > It seems that if I have two concurrent requests being made to the same > action, e.