The 2.3 Servlet API has "Lifecyle Events".  You just have to use the
<listener> tag in your web.xml to specify a class that implements the
ServletContextListener interface.  There is an explanation at

http://developer.java.sun.com/developer/technicalArticles/Servlets/servl
etapi2.3/

under the "Lifecyle Events" section.  I've use this a few times in
Tomcat 4 with no problems.  

Bsr


-----Original Message-----
From: Mark Woon [mailto:[EMAIL PROTECTED]] 
Sent: Friday, February 08, 2002 9:21 AM
To: Struts Users Mailing List
Subject: Initializer servlet?


Hello.

I've seen a few posts about initializer servlets that basically does
whatever setup/housekeeping work needs to be done for the application.
How do you guarantee that this servlet will run before anything else?
Is this something you can define within your servlet container? If so,
does anyone know how you'd do this with Tomcat?

Thanks,
-Mark


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>





--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to