随笔分类 -  Servlet

about servlet
摘要:监听器的使用实例: public class SessionListener implements HttpSessionListener { public void sessionCreated(HttpSessionEvent arg0) { // TODO Auto-generated method stub ServletContext application=arg0.getSession().getServletContext(); int count=0; if(application.getAttribute("count")!=null)... 阅读全文
posted @ 2012-12-30 09:27 Tinker 阅读(130) 评论(0) 推荐(0)