2013年10月2日
摘要: 监听器ServletContextListener 监听servlet的初始化和结束httpSessionListener 监听session的创建和结束 ,可以利用这个来统计在线登录的人数..package com.zh;import javax.servlet.http.HttpSessionEvent;import javax.servlet.http.HttpSessionListener;public class LoginListener implements HttpSessionListener{ private static int count; pu... 阅读全文
posted @ 2013-10-02 14:11 邵邵 阅读(349) 评论(0) 推荐(0) 编辑
摘要: 1.创建一个 可以使用GZIPOutputStream 压缩的流package com.zh.yasuo2;import java.io.IOException;import java.util.zip.GZIPOutputStream;import javax.servlet.ServletOutputStream;public class GzipServletOupputStream extends ServletOutputStream{ private GZIPOutputStream gzipOutputStream; @Override public void write(int 阅读全文
posted @ 2013-10-02 12:54 邵邵 阅读(458) 评论(0) 推荐(0) 编辑

淘宝美工兼职招聘