I have a class implements javax.servlet.ServletContextAttributeListener, then register the listener class in web.xml. My question is how to register a lister in JSP?
Xinyi, You do the same thing: create a class and register it in web.xml. Servlets and JSPs are both part of a web application. In fact, JSPs get compiled into servlets.