I'm just getting back to looking at my lazy loading problem and would like to see if I am understanding things correctly. While not strictly Struts related (I do use Struts in this app) I am hoping that someone else on this list has gone down the same path as I am attempting.
My web.xml has the following section in it: <filter> <filter-name>hibernateFilter</filter-name> <filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFi lter</filter-class> </filter> <filter-mapping> <filter-name>hibernateFilter</filter-name> <url-pattern>*.spring</url-pattern> </filter-mapping> I have also tried other patterns than *.spring (as I was unsure if this was correct. When attempting to access objects in the jsp that have come from hibernate I am still getting : [LazyInitializationException] could not initialize prozy - the owning Session was closed................ Originally I was using Hibernate 2 and had tried the similar OpenSessionInViewFilter that is meant for that version. Same problem. Any ideas? Am I correct in thinking that if the filter is working correctly I should be able to grab an object from my DAO layer in an Action, put it into the session or request scope and have my jsp page access it's related objects (with lazy loading)? What mechanism opens and closes these Hibernate sessions? I thought it was supposed to be all done by the filter? PS. I do use Tiles with my Struts if this makes any difference. Regards Marty --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]