Hi,
Is there any way to apply Open Session in View design pattern for Struts + Spring + Hibernate?
Hi,
Is there any way to apply Open Session in View design pattern for Struts + Spring + Hibernate?
Yes there is an OpenSessionInView Filter
How to config this ?
thanks
lixin
See the following posting I am recommending this way to do it. Here is the posting http://forum.springframework.org/showthread.php?t=10519.
For an example of the Filter way to do it.
Code:<filter> <filter-name>hibernateFilter</filter-name> <filter-class>org.springframework.orm.hibernate.support.OpenSessionInViewFilter</filter-class> </filter> <filter-mapping> <filter-name>hibernateFilter</filter-name> <url-pattern>/mnt/*</url-pattern> </filter-mapping>
Last edited by robyn; May 14th, 2006 at 09:56 AM.