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 to the intended method.In first invocation the variables >> inside the action class are all null , However in second invocation they >> all >> are prefilled from the page.Can anyone explain why it gets invoked twice >> ?. > > If you implemented only prepare() method, it will be called each time > before any call to action's method of this class. If you have methods: > input() and update(), prepare() will be called before input() and > update(). If you want to call it only before input() add > prepareInput() or prepareDoInput() method [1] > > It can be also issue with Ajax TabbedPanel, try to search in group > archive. > > > [1] http://struts.apache.org/2.x/docs/prepare-interceptor.html > > > Regards > -- > Lukasz > http://www.lenart.org.pl/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Prepare-method-being-invoked-twice-tp18978969p18979442.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]