struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aum Strut <aum.str...@gmail.com>
Subject Re: Using Base Action for application (struts2)
Date Thu, 28 Jun 2012 16:06:24 GMT
I am not sure what you mean by constructor method??
 u mean prepare method??

On Thu, Jun 28, 2012 at 9:19 PM, samsongbest <samsongbest@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.struts@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?
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message