Looks like you are trying to access Hibernate managed objects or perform session manipultion in your view. Spring makes this easier but you can do it manually easily. You just need to keep your session open longer. Have a google for things like open session in view filter.
----- Original message ----- From: "Mansour" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <user@struts.apache.org> Date: Sat, 19 May 2007 12:36:51 -0300 Subject: Hibernate headache with struts 2 I am trying to use hibernate with my struts project. The problem I keep on getting : javax.servlet.ServletException: org.hibernate.SessionException: Session is closed! org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:518) org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:421) com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:119) com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:55) This occurs when: session.commit(something); Is this a struts 2 issue ? IF yes, then how to get s2 to work with hibernate. I have googled this, and every thing suggest using spring. This is not an option for me. Can any one help ? --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]