posted 21 years ago
Define in web.xml
<listener>
<listener-class>TestServlet1</listener-class>
</listener>
<listener>
<listener-class>TestServlet2</listener-class>
</listener>
//javax.servlet.ServletContextListener interface is notified when web application is initialed or destroyed in container
***you remeber :
one context per web application per JVM
SCJA,SCJP,SCWCD,SCBCD,SCEA I
Java Developer, Thailand