Re: Initialization stuff

2004-07-14 Thread Martin I. Levi
Got it. Thanks! On Tue, 2004-07-13 at 15:44, Emmanouil Batsis wrote: > Martin I. Levi wrote: > > > Is this a better solution than mine? > > Although I often use servlets for initialization, Paul's suggestion is > better because ServletContextListener was designed exactly for > initialization/f

Re: Initialization stuff

2004-07-13 Thread Bill Siggelkow
implements javax.servlet.ServletContextListener. This requires a container supporting Servlet 2.3. Paul -Original Message- From: Martin I. Levi [mailto:[EMAIL PROTECTED] Sent: 13 July 2004 12:47 To: Struts Users Mailing List Subject: Initialization stuff Hi! I would like to call an

RE: Initialization stuff

2004-07-13 Thread Martin I. Levi
OTECTED] > > 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 containe

Re: Initialization stuff

2004-07-13 Thread Emmanouil Batsis
Martin I. Levi wrote: Is this a better solution than mine? Although I often use servlets for initialization, Paul's suggestion is better because ServletContextListener was designed exactly for initialization/finalization purposes. Using the right tool for the job is a good practice even if you g

RE: Initialization stuff

2004-07-13 Thread Martin I. Levi
ginal Message- > > From: Martin I. Levi [mailto:[EMAIL PROTECTED] > > Sent: 13 July 2004 12:47 > > To: Struts Users Mailing List > > Subject: Initialization stuff > > > > > > Hi! > > > > I would like to call an initialization class when my web

RE: Initialization stuff

2004-07-13 Thread Paul McCulloch
st > 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

RE: Initialization stuff

2004-07-13 Thread Matthias Wessendorf
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 > ActionS

Initialization stuff

2004-07-13 Thread Martin I. Levi
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.