I am not sure what you mean by constructor method?? u mean prepare method??
On Thu, Jun 28, 2012 at 9:19 PM, samsongbest <samsongb...@gmail.com> wrote: > ** > Hi Aum, > > How about put the init type work in the constructor method of the > BaseAction? > > ------------------------------ > > Best Regards,**** > > *Sam Song* > > *Cognizant Technology Solutions <http://www.cognizant.com/>* > > *From:* Aum Strut <aum.str...@gmail.com> > *Date:* 2012-06-29 00:05 > *To:* Struts Users Mailing List <user@struts.apache.org> > *Subject:* Using Base Action for application (struts2) > Hi All, > > I am not sure how to do this, i am planning to create a BaseAction class > and will do some init type work here which should be available to each and > every action without need to call that specific method. > > Idea is to create a property which is needed by each and every > Action/Request and i don't want to call that method from each and every > action. > > is there a way to achieve this? > >