日期:2014-05-17 浏览次数:20669 次
@Override
public void destroy() {
// TODO Auto-generated method stub
}
public static int index=0;
@Override
public void doFilter(ServletRequest servletrequest,
ServletResponse servletresponse, FilterChain filterchain)
throws IOException, ServletException {
// TODO Auto-generated method stub
index++;
// HttpServletRequest a = (HttpServletRequest)servletrequest;
// HttpSession b = a.getSession();
// UserInfo c=(UserInfo)b.getAttribute(Constants.USER_INFO_SESSION_KEY);
// if(c!= null){
// System.out.println(c.getUserId()==null?null:c.getUserId());
// }
System.out.println(index++);
filterchain.doFilter(servletrequest, servletresponse);
return;
}
@Override
public void init(FilterConfig filterconfig) throws ServletException {
// TODO Auto-generated method stub
}