KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > javax > servlet > ServletContextAttributeListener

javax.servlet
Interface ServletContextAttributeListener

All Superinterfaces:
EventListener
See Also:
Top Examples, Source Code, ServletContextAttributeEvent

public void attributeAdded(ServletContextAttributeEvent scab)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[247]Implement ServletContextAttributeListener
By Anonymous on 2003/04/28 17:23:28  Rate
import javax.servlet.ServletContext; 
 import javax.servlet.ServletContextAttributeEvent; 
 import javax.servlet.ServletContextAttributesListener; 
 import javax.servlet.ServletContextEvent; 
 import javax.servlet.ServletContextListener; 
  
  
  
 public class ServletContextAttribListener 
     implements ServletContextAttributeListener  {  
  
  
  
   //This method is invoked when an attribute 
   //is added to the ServletContext object 
   public void attributeAdded  ( ServletContextAttributeEvent scab )  
    {  
     System.out.println ( "An attribute was added to the " + 
       "ServletContext object" ) ; 
    }  
  
  
   //This method is invoked when an attribute 
   //is removed from the ServletContext object 
   public void attributeRemoved  ( ServletContextAttributeEvent scab )  
    {  
     System.out.println ( "An attribute was removed from " + 
       "the ServletContext object" ) ; 
    }  
  
  
   //This method is invoked when an attribute 
   //is replaced in the ServletContext object 
   public void attributeReplaced  ( ServletContextAttributeEvent scab )  
    {  
     System.out.println ( "An attribute was replaced in the " + 
       "ServletContext object" ) ; 
    }  
  
  
  }  
 


public void attributeRemoved(ServletContextAttributeEvent scab)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void attributeReplaced(ServletContextAttributeEvent scab)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags