You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Martin I. Levi" <ml...@labtie.mmt.upc.es> on 2004/07/13 13:46:48 UTC

Initialization stuff

Hi!

I would like to call an initialization class when my web application is
loaded in the container to perform some extra init tasks. How should I
do this?
My idea was to subclass the ActionServlet and override the init method,
is this ok or is there a better way to do this?

Any help is welcome.

Thanks!

-- 
Saludos,

Martin I. Levi

Centre Tecnològic de Transferenciència de Calor
Universitat Politècnica de Catalunya
www.cttc.upc.edu


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: Initialization stuff

Posted by "Martin I. Levi" <ml...@labtie.mmt.upc.es>.
Yeah, but I just need to do initialization when the application starts,
the validator and tiles are working all the time when requests come and
go. Perhaps is a good solution also, but is mine wrong or discouraged?
Thats what i really would like to know.

On Tue, 2004-07-13 at 13:58, Matthias Wessendorf wrote:
> Perhaps you can write a Plugin
> 
> that is the way how tiles and Validator gets init.
> 
> http://struts.apache.org/api/org/apache/struts/action/PlugIn.html
> 
> regards
> 
> > -----Original Message-----
> > From: Martin I. Levi [mailto:mlevi@labtie.mmt.upc.es] 
> > Sent: Tuesday, July 13, 2004 1:47 PM
> > To: Struts Users Mailing List
> > Subject: Initialization stuff
> > 
> > 
> > Hi!
> > 
> > I would like to call an initialization class when my web 
> > application is loaded in the container to perform some extra 
> > init tasks. How should I do this? My idea was to subclass the 
> > ActionServlet and override the init method, is this ok or is 
> > there a better way to do this?
> > 
> > Any help is welcome.
> > 
> > Thanks!
> > 
> > -- 
> > Saludos,
> > 
> > Martin I. Levi
> > 
> > Centre Tecnològic de Transferenciència de Calor
> > Universitat Politècnica de Catalunya
> > www.cttc.upc.edu
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
-- 
Saludos,

Martin I. Levi

Centre Tecnològic de Transferenciència de Calor
Universitat Politècnica de Catalunya
www.cttc.upc.edu


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: Initialization stuff

Posted by Matthias Wessendorf <ma...@matthias-wessendorf.de>.
Perhaps you can write a Plugin

that is the way how tiles and Validator gets init.

http://struts.apache.org/api/org/apache/struts/action/PlugIn.html

regards

> -----Original Message-----
> From: Martin I. Levi [mailto:mlevi@labtie.mmt.upc.es] 
> Sent: Tuesday, July 13, 2004 1:47 PM
> To: Struts Users Mailing List
> Subject: Initialization stuff
> 
> 
> Hi!
> 
> I would like to call an initialization class when my web 
> application is loaded in the container to perform some extra 
> init tasks. How should I do this? My idea was to subclass the 
> ActionServlet and override the init method, is this ok or is 
> there a better way to do this?
> 
> Any help is welcome.
> 
> Thanks!
> 
> -- 
> Saludos,
> 
> Martin I. Levi
> 
> Centre Tecnològic de Transferenciència de Calor
> Universitat Politècnica de Catalunya
> www.cttc.upc.edu
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org