Re: Prepare method being invoked twice

2008-09-17 Thread Jayeshpowar
Finally i figured out the issue.The problem was that i had mistakenly incorporated struts "defaultStack" prior to paramsPrepareParamsStack in the large set of interceptors that i had used . The prepare interceptor in the default stack and again in paramsPrepareParamsStack was causing invocation

Re: Prepare method being invoked twice

2008-08-14 Thread Laurie Harper
Kibo wrote: Hi When you see struts-default.xml, you find out that the paramsPrepareParamsStack call the interceptor params twice. You can set up your struts-default.xml or in struts.xml define your own modified interceptor stack:

Re: Prepare method being invoked twice

2008-08-14 Thread Kibo
Hi When you see struts-default.xml, you find out that the paramsPrepareParamsStack call the interceptor params twice. You can set up your struts-default.xml or in struts.xml define your own modified interceptor stack:

Re: Prepare method being invoked twice

2008-08-14 Thread Dave Newton
--- On Thu, 8/14/08, Lukasz Lenart wrote: > Just leave prepare() empty (you can also setup interceptor to don't > call prepare() method) and implement prepare() IMO it's preferable to simply not implement prepare() rather than leave it blank (which is misleading). Configuring a Preparable actio

Re: Prepare method being invoked twice

2008-08-14 Thread Dave Newton
--- On Thu, 8/14/08, Jayeshpowar wrote: > Thanks Lukasz for quick reply. But the action class that has > the prepare method has four methods. The salient point was that prepare() will be called before any method in the class, regardless of how many methods the class has. If you're calling a sing

Re: Prepare method being invoked twice

2008-08-14 Thread Lukasz Lenart
> Thanks Lukasz for quick reply.But the action class that has the prepare > method has four methods . Just leave prepare() empty (you can also setup interceptor to don't call prepare() method) and implement prepare() Regards -- Lukasz http://www.lenart.org.pl/ -

Re: Prepare method being invoked twice

2008-08-14 Thread Jayeshpowar
Thanks Lukasz for quick reply.But the action class that has the prepare method has four methods . Lukasz Lenart wrote: > >> I have an action class which implements preparable . It works fine but i >> noticed that the prepare method inside the action class gets invoked >> twice >> before getting

Re: Prepare method being invoked twice

2008-08-14 Thread Lukasz Lenart
> I have an action class which implements preparable . It works fine but i > noticed that the prepare method inside the action class gets invoked twice > before getting to the intended method.In first invocation the variables > inside the action class are all null , However in second invocation the