You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Pa...@allsolutions.com.au on 2002/11/25 02:09:49 UTC
servlet startup
Hi,
Further to a posting made a while ago - I wish to define some
session variables on the startup of Tomcat. I have added:
<listener>
<listener-class> com.mycomp.servlet. LoadMyServletAtStartup
</listener-class>
</listener>
to conf/web.xml
and have my servlet source. Where (if anywhere specific) must I place it?
Have I edited the correct web.xml?
Thaks
Paul.
Re: servlet startup
Posted by Kwok Peng Tuck <pe...@makmal.com>.
web.xml in the /conf directory is global and applies to all webapps. If
you have anything specific for your webapp you should instead use the
web.xml in your webapp directory, specifically like datasources and the
like. Take a look at the jsp specs or tomcat docs if you need further
details.
Paul_Wallace@allsolutions.com.au wrote:
>Hi,
> Further to a posting made a while ago - I wish to define some
>session variables on the startup of Tomcat. I have added:
>
> <listener>
> <listener-class> com.mycomp.servlet. LoadMyServletAtStartup
></listener-class>
> </listener>
>
>to conf/web.xml
>
>and have my servlet source. Where (if anywhere specific) must I place it?
>Have I edited the correct web.xml?
>
>Thaks
>
>Paul.
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>