public class MyServletContextListener implements ServletContextListener {
public void contextDestroyed(ServletContextEvent arg0) {
}
public void contextInitialized(ServletContextEvent arg0) {
ServletContext sc = sce.getServletContext();
sc.setAttribute("count", 0);
}
}
照着视频打的,但是出现了sce cannot be resolved的错误,哪里出问题了呢?我的tomcat是7老师的是6,JDK版本也比老师的高,出什么问题了?
胡子哥哥