prepare{MethodName} not working
Hi, While referring the below link I came to know that we can have prepare{MethodName}() that will run before the invocation of the particular method. http://struts.apache.org/2.1.6/docs/prepare-interceptor.html I was trying the same. In my action class, I have a save() method and the action class is implemented with Preparable Interface. But when I add prepareSave() I get a error "The method prepareSave() of type ManageGeneralSetupAction must override or implement a supertype method". Do I need to override any other method or do I need to implement any other Interface? Please advice me on this. Thanks Praveen
Re: prepare{MethodName} not working
You probably have the @Override annotation on prepareSave(), and you don't need it. On Sat, Jun 27, 2009 at 11:40 AM, Praveen.V.Kumar < praveenkuma...@spanservices.com> wrote: > Hi, > > While referring the below link I came to know that we can have > prepare{MethodName}() that will run before the invocation of the particular > method. > > http://struts.apache.org/2.1.6/docs/prepare-interceptor.html > > I was trying the same. In my action class, I have a save() method and the > action class is implemented with Preparable Interface. But when I add > prepareSave() I get a error > "The method prepareSave() of type ManageGeneralSetupAction must override or > implement a supertype method". > > Do I need to override any other method or do I need to implement any other > Interface? > > Please advice me on this. > > Thanks > Praveen > > -- Jim Kiley Senior Technical Consultant | Summa [p] 412.258.3346 http://www.summa-tech.com
Re: prepare{MethodName} not working
> Hi, > While referring the below link I came to know that we can have > prepare{MethodName}() that will run before the invocation of the particular > method. > > http://struts.apache.org/2.1.6/docs/prepare-interceptor.html > > I was trying the same. In my action class, I have a save() method and the > action class is implemented with Preparable Interface. But when I add > prepareSave() I get a error > "The method prepareSave() of type ManageGeneralSetupAction must override or > implement a supertype method". > > Do I need to override any other method or do I need to implement any other > Interface? > Please advice me on this. You might be using the wrong stack in your xml. Check out this one: paramsPrepareParamsStack Jim C. signature.asc Description: OpenPGP digital signature
RE: prepare{MethodName} not working
I have the @Override annotations on prepareSave() but still it is saying The method prepareSave() of type ManageGeneralSetupAction must override or implement a supertype method -Original Message- From: Jim Kiley [mailto:jhki...@summa-tech.com] Sent: Saturday, June 27, 2009 9:20 PM To: Struts Users Mailing List Subject: Re: prepare{MethodName} not working You probably have the @Override annotation on prepareSave(), and you don't need it. On Sat, Jun 27, 2009 at 11:40 AM, Praveen.V.Kumar < praveenkuma...@spanservices.com> wrote: > Hi, > > While referring the below link I came to know that we can have > prepare{MethodName}() that will run before the invocation of the particular > method. > > http://struts.apache.org/2.1.6/docs/prepare-interceptor.html > > I was trying the same. In my action class, I have a save() method and the > action class is implemented with Preparable Interface. But when I add > prepareSave() I get a error > "The method prepareSave() of type ManageGeneralSetupAction must override or > implement a supertype method". > > Do I need to override any other method or do I need to implement any other > Interface? > > Please advice me on this. > > Thanks > Praveen > > -- Jim Kiley Senior Technical Consultant | Summa [p] 412.258.3346 http://www.summa-tech.com - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: prepare{MethodName} not working
Reread what I wrote: "You probably have the @Override annotation on prepareSave(), and *you don't need it*." Delete the annotation. jk On Sat, Jun 27, 2009 at 11:52 AM, Praveen.V.Kumar < praveenkuma...@spanservices.com> wrote: > I have the @Override annotations on prepareSave() but still it is saying > The method prepareSave() of type ManageGeneralSetupAction must override or > implement a supertype method > > -Original Message- > From: Jim Kiley [mailto:jhki...@summa-tech.com] > Sent: Saturday, June 27, 2009 9:20 PM > To: Struts Users Mailing List > Subject: Re: prepare{MethodName} not working > > You probably have the @Override annotation on prepareSave(), and you don't > need it. > > On Sat, Jun 27, 2009 at 11:40 AM, Praveen.V.Kumar < > praveenkuma...@spanservices.com> wrote: > > > Hi, > > > > While referring the below link I came to know that we can have > > prepare{MethodName}() that will run before the invocation of the > particular > > method. > > > > http://struts.apache.org/2.1.6/docs/prepare-interceptor.html > > > > I was trying the same. In my action class, I have a save() method and the > > action class is implemented with Preparable Interface. But when I add > > prepareSave() I get a error > > "The method prepareSave() of type ManageGeneralSetupAction must override > or > > implement a supertype method". > > > > Do I need to override any other method or do I need to implement any > other > > Interface? > > > > Please advice me on this. > > > > Thanks > > Praveen > > > > > > > -- > Jim Kiley > Senior Technical Consultant | Summa > [p] 412.258.3346 > http://www.summa-tech.com > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > -- Jim Kiley Senior Technical Consultant | Summa [p] 412.258.3346 http://www.summa-tech.com