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
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.
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
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
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
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
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:
> 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
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
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
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
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.
12 matches
Mail list logo