jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peter lin <peter....@labs.gte.com>
Subject webapp name
Date Mon, 22 Jul 2002 12:54:49 GMT
Does anyone know how to get the webapp name from ServletContext?  Here
is a quick description of what i am trying to do.

I have a webapp that i want to load when tomcat starts. I want to make
sure the webapp only starts for one webapp and not the others.

I wrote a test class that implements
javax.servlet.ServletContextListener. What I'm seeing is the event is
fired twice and therefore loading the app twice.  It seems a bit weird
to have the event fire twice.  My test Listener checks to make sure the
app isn't already in the ServletContext before creating it.  I have the
root path set to specific path in server.xml.

thanks in advance.


peter lin

--
To unsubscribe, e-mail:   <mailto:taglibs-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-dev-help@jakarta.apache.org>


Mime
View raw message