• λ我爱Aspx >> Asp.Net >> 为什么过滤器不能被调用?不知是哪骤错了,我是在struts中用的
  • 为什么过滤器不能被调用?不知是哪骤错了,我是在struts中用的

  • :aspxer  Դ:csdn  :2007-7-6 2:47:13  ؼ:
  • google_ad_width = 250; google_ad_height = 250; google_ad_format = "250x250_as"; google_color_url = "000000";

    放在WEB-INF\classes\manage\hibernateUtil\CloseSessionFilter.class

    public class CloseSessionFilter implements Filter {

    Log logger = LogFactory.getLog(this.getClass());

    // Filte配置对象

    protected FilterConfig config;

    public void destroy() {

    // TODO Auto-generated method stub

    this.config = null;

    }

    public void doFilter(ServletRequest arg0, ServletResponse arg1,

    FilterChain arg2) throws IOException, ServletException {

    // TODO Auto-generated method stub

    System.out.println("filter1");

    arg2.doFilter((HttpServletRequest) arg0,(HttpServletResponse) arg1);

    System.out.println("filter2");

    }

    public void init(FilterConfig arg0) throws ServletException {

    // TODO Auto-generated method stub

    Ҷƪл˵?
  • һƪ关于软件选择的问题(Visual Basic.Net)
    һƪjava.lang.NullPointerException 为什么会抛出来呀?