Servlet « Filter « JPA Q&A





1. Servlet, Filter & JSP strategy    forum.hibernate.org

I am trying to come up with a strategy to use a Filter to close and commit a session from ThreadLocal after each page request. The filter launches a servlet, which put some objects such as persistant Collections and other objects into the request object, and then forwards to a jsp page to use these objects to draw the output HTML ...

2. problems using Hibernate servlet filter    forum.hibernate.org

3. Is a servlet filter the best approach?    forum.hibernate.org

I am writing a web application using Hibernate, Struts & Tomcat. I have a dao layer with each dao being constructed with the current session (using sessionFactory.getCurrentSession()). I have configured hibernate and tomcat to use JTOM for transaction management. I'm fairly new to hibernate and am following many examples, particularly the caveat emptor one. I read somewhere that the servlet filter ...