right! now i get it, thankyou vijitha, but i have one more silly question, the code for the listener class on page 173 would be compiled with the servlet compile command right? o and by the way i removed the the CLASSPATH variable from environment variables and then compiled the code with full path
package com.example;
import javax.servlet.*;
public class MyServletContextListener implements ServletContextListener {
public void contextInitialized(ServletContextEvent event) {
.
.
.
}
public void contextDestroyed(ServletContextEvent event) {
.
.
.
}
}