Announcement Announcement Module
Collapse
No announcement yet.
Open Session in View with the Struts Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Open Session in View with the Struts

    Hi,
    Is there any way to apply Open Session in View design pattern for Struts + Spring + Hibernate?

  • #2
    Yes there is an OpenSessionInView Filter

    Yes there is an OpenSessionInView Filter

    Comment


    • #3
      How to config this ?
      thanks

      Comment


      • #4
        See message.

        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, 09:56 AM.

        Comment

        Working...
        X