inzaghi
asked on
servlet listener classes
Is it possible to pass in parameters to a Listener class in the web.xml simular to as you do with filters and servlets?
You can't directly with HttpSessionListener as you do not have access to the servlet context.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
public void contextInitialized( ServletContextEvent sce ) {
ServletContext sc = sce.getServletContext() ;
String dbDriverName = sc.getInitParameter("dbDri
}