You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by derek harding <de...@morningstarsystems.com> on 2001/05/18 19:24:02 UTC
bootstrapping in struts?
I am wondering if there is a way to include a bootstrap class using struts. I know the web.xml is able to load a servlet on startup. But is this the only way to load classes on startup?
Thanks,
Derek
Re: bootstrapping in struts?
Posted by "Craig R. McClanahan" <cr...@apache.org>.
On Fri, 18 May 2001, derek harding wrote:
> I am wondering if there is a way to include a bootstrap class using
> struts. I know the web.xml is able to load a servlet on startup.
> But is this the only way to load classes on startup?
>
If you want stuff executed when the application is started, this is the
only way that is portable across all servlet containers.
In a servlet 2.3 environment (such as Tomcat 4.0), there is a new feature
called application event listeners that serve this purpose without having
to be servlets themselves.
> Thanks,
> Derek
>
Craig