A standardized approach would be to implement a ServletContextListener and define it
in your web.xml for the web app. It will be invoked before the web app accepts any requests
and when the web app is shutdown.
A more "Struts" approach would be to use a PlugIn and define it in your struts-config.xml file.
Note that the only compelling reason to use a PlugIn would be if you were still only on Servlet 2.2 (when it hadn't yet been introduced) or if you needed your PlugIn to have a reference to the ModuleConfig object corresponding to the Module in which the PlugIn was defined.
Just wanted to point out that just because it's a "more 'Struts'" approach, it's not necessarily better.
Then again, I keep writing PlugIns myself, just out of habit. They work.
Joe
--
Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com
"Narrow minds are weapons made for mass destruction" -The Ex