hi,
My doFilter method looks like that: public void doFilter(ServletRequest arg0, ServletResponse arg1, FilterChain arg2) throws IOException, ServletException { arg2.doFilter(arg0,arg1); try{ HibernateSessionFactory.commitTransaction(); System.out.println("koniec"); }catch(DAOException e){ throw new ServletException(e); }finally{ HibernateSessionFactory.closeSession(); } }
My problem is that although DAOException is being catched and new ServletException is being thrown the page is already rendered. There is no error on the page and the only place where I can find that something went wrong is server log. What is wrong? Why ServletException doesn't affect page?
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]