Google Web Toolkit with Struts 2?

2014-01-15 Thread Ali Akhtar
I can't find too much info on this topic online. If there's anyone using GWT with struts 2 successfully, can you share some details on your set up / configuration? Specifically, are you able to use GWT-RPC services, or do you have to do JSON encoding / decoding? The documentation I've found for G

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

2013-11-04 Thread Ali Akhtar
that each db connection put there will only be shared by the instance of the Action for that particular request? Thanks. On Mon, Nov 4, 2013 at 3:10 PM, Lukasz Lenart wrote: > 2013/11/4 Ali Akhtar : > > no, pure struts. The class that it extends from is included in the same > > p

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.stru

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

2013-11-03 Thread Ali Akhtar
lia.strutsTest.actions.ajax.FooBar@1318c29 Original: alia.strutsTest.actions.ajax.FooBar@14d03c1, now: alia.strutsTest.actions.ajax.FooBar@1ef284c Original: alia.strutsTest.actions.ajax.FooBar@14d03c1, now: alia.strutsTest.actions.ajax.FooBar@3eaa0f Please advise if this is the correct / expected behavior? On M

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

2013-11-03 Thread Ali Akhtar
> MG>2 difference requests..2 different action class signatures > > > > > > On Mon, Nov 4, 2013 at 2:18 AM, Dave Newton > wrote: > > > > > You are incorrect. Actions are instantiated per-request. Other than > that, > > > you will need to provide a w

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.getActio

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

2013-11-03 Thread Ali Akhtar
ed 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.g mysite.com/fooAction, then

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

2013-11-03 Thread Ali Akhtar
Hello, It seems that if I have two concurrent requests being made to the same action, e.g mysite.com/fooAction, then struts resets the first action's instance while that instance may still be in the interceptor. E.g, if I have the following code in my interceptor: action = ai.getAction();